Here is how to enable CodeIgniter support to $_GET and still able to use the normal “SEO-friendly” URL working together.
So you will get a URL like this
http://www.example.com/index.php/the_controller/the_function/?some=thing&more=yes
First approach is modify your “config.php” and change this line.
$config['enable_query_strings'] = true;
But this is not recommended because on pagination, you will get ugly URL.
Second approach is modify your “config.php” and change this line.
$config['uri_protocol'] = "PATH_INFO";
You can keep this line (notice it is still “false”)
$config['enable_query_strings'] = false;
And on your controller, you can use this code
parse_str($_SERVER['QUERY_STRING'], $get_vars);
echo $get_vars['some'];
5 replies on “Enabling CodeIgniter $_GET”
Hi,
I installed proxycoder-0.0.2.1 but security code is don’t work.
Please help me.
Thank you.
What do you mean? The security code image can not be displayed at all?
Images can be displayed, but enter the security code can not login.
Is the code already customized? Or even the fresh-downloaded script can not work?
I don’t know customized?
What do i do?