CodeIgniter Forums
GET Requests - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: GET Requests (/thread-19141.html)



GET Requests - El Forum - 05-29-2009

[eluser]Samuurai[/eluser]
Hi,

I've been reading the forums about GET requests. Some of them date back to 2007. I'm just wondering if there's a current easy solution to enable GET requests, either across the board, or just for a single controller.

Thanks!


GET Requests - El Forum - 05-29-2009

[eluser]TheFuzzy0ne[/eluser]
As far as I know, it has to be done across the board, and it's the index file that must be queried.

To do this, you need to enable query strings in your config.php and perhaps change the URI protocol to query string.

If you want to put a question mark after the controller name, then you will probably have to allow the '?' character, and set up some routes (don't forget to escape the question mark in your routes).


GET Requests - El Forum - 05-29-2009

[eluser]Samuurai[/eluser]
Thanks... Being new to CI, I haven't done that before.. Is it the same as Jamie Rumbelow's post on this page?


GET Requests - El Forum - 05-29-2009

[eluser]TheFuzzy0ne[/eluser]
Yes, that's exactly what I meant.


GET Requests - El Forum - 05-29-2009

[eluser]Samuurai[/eluser]
Great minds, eh? Smile

It worked Brilliantly... thanks!