forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 26
QUERY STRING GET
World Wide Web Server edited this page Jul 4, 2012
·
6 revisions
If you want to enable $_GET in your CI app, you should check out this thread:
http://codeigniter.com/forums/viewthread/56389/
Briefly, it depends on if you want it site wide or for a few pages.
[b]If you only need it in a few pages:[/b]
- 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]
[b]If you need it site wide:[/b]
Look at: http://codeigniter.com/forums/viewthread/56389/#277621