Welcome Guest, Not a member yet? Register   Sign In
unset GET
#2

[eluser]mddd[/eluser]
I'm not sure about this, but I think some web servers regard the url as index.php?welcome/test/3 so in that case the query string IS being used, only in a different way.

What I DO know for sure is that you can use $this->uri->uri_to_assoc($n) to achieve what you want. $n is the first segment you want to tread 'associatively'. That way you can still use 'fixed' parameters in the first part of the url.
For example:
Code:
// uri : www.example.com/welcome/test/cat/4/region/4/bla/5 (this is using .htaccess to remove 'index.php')
$vars = $this->uri_to_assoc(3);
// $vars is now: array('cat'=>4, 'region'=>4, 'bla'=>5)


Messages In This Thread
unset GET - by El Forum - 06-22-2010, 05:21 AM
unset GET - by El Forum - 06-22-2010, 05:51 AM
unset GET - by El Forum - 06-22-2010, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB