You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
World Wide Web Server edited this page Jul 4, 2012
·
6 revisions
Category:Core::GET
If you want to enable $_GET in your CI app, [url=http://codeigniter.com/forums/viewthread/56389/]check out this thread[/url]
For enabling it site-wide [url=http://codeigniter.com/forums/viewthread/56389/#277621]look here[/url]
Briefly, it depends on if you want it site wide or for a few pages.
[h4]If you only need it in a few pages:[/h4]
Set your config item 'uri_protocol' to 'PATH_INFO'.
[code]$config['uri_protocol'] = "PATH_INFO";[/code]
Use this line to rebuild the $_GET array (in your controller)
[code]parse_str($_SERVER['QUERY_STRING'],$_GET);[/code]