Welcome Guest, Not a member yet? Register   Sign In
GET Requests
#1

[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!
#2

[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).
#3

[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?
#4

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

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

It worked Brilliantly... thanks!




Theme © iAndrew 2016 - Forum software by © MyBB