CodeIgniter Forums

Full Version: How can I access a get variable with CI?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]MyDarkPassenger[/eluser]
I was looking through the guide and it appears you access get with $this->input->get('variable') however the docs also say that ci destroys the global get array because it doesn't use it. I'm a little confused by the get premise due to this. When I wrote my script I had the form pass the data using get but I couldn't access the data with $this->input->get in my controller, however $this->input->post worked fine. How can I use get with CI. I'm not opposed to URIs but I can't pass a form with them.

El Forum

[eluser]MyDarkPassenger[/eluser]
Never mind my bad missed the config setting.