Part of the EllisLab Network
x
 
Create New Page
 View Previous Changes    ( Last updated by George Petsagourakis )

QUERY STRING GET

Category:Core -> GET
If you want to enable $_GET in your CI app, check out this thread
For enabling it site-wide look here

Briefly, it depends on if you want it site wide or for a few pages.

If you only need it in a few pages:

1) Set your config item ‘uri_protocol’ to ‘PATH_INFO’.

$config['uri_protocol'"PATH_INFO"

2) Use this line to rebuild the $_GET array (in your controller)

parse_str($_SERVER['QUERY_STRING'],$_GET); 

Categories: