Welcome Guest, Not a member yet? Register   Sign In
Mix Query String and URI Segments
#1

[eluser]breaddes[/eluser]
If the last segment of my uri contains $_GET Params like ?m=subscripe&a=validate, I want to handle them that way. How can I do that?
#2

[eluser]Dennis Rasmussen[/eluser]
http://www.askaboutphp.com/58/codeignite...rings.html Smile
#3

[eluser]Nick_MyShuitings[/eluser]
Not to steal that link's thunder, but out of ease of quick access to answers... the gist of that link is the following for enabling it globally:

In config.php
Code:
$config['uri_protocol'] = "PATH_INFO";

$config['enable_query_strings'] = TRUE;

or if you want it locally leave PATH_INFO and paste this in the controller: parse_str($_SERVER['QUERY_STRING'],$_GET);

Read the link for more info.
#4

[eluser]pbreit[/eluser]
I think this is considered the best current solution:
http://ellislab.com/forums/viewthread/15...30/#780670

I recall that the solution proposed above can have some unwanted side effects.

The real solution is for CodeIgniter to support it inherently.




Theme © iAndrew 2016 - Forum software by © MyBB