Welcome Guest, Not a member yet? Register   Sign In
getGetPost and getPostGet method
#1

Hello
I built a web application with CI3 since 5 years. I'm trying to migrate on CI4.
Congratulations to all the team for this new version.
My application becomes large and the migration is not an easy work.

I used to use the input->getGetPost('my_field') method
I replace this by the new request->getGetPost('my_field')
I discover with suprise that if the field 'my_field' not exists the getGetPost method return all the GET parameters (request->getGet() ), the equivalent of $_GET.
the expected return for me, as the CI3 method, is NULL

I don't understand the reason of this change, can you give me explanation or examples ?
Thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB