Welcome Guest, Not a member yet? Register   Sign In
uri segments order
#2

[eluser]xwero[/eluser]
You could detect the parameter by the type
Code:
if(is_numeric($this->uri->segment(3)))
{
   $limit = $this->uri->segment(3);
}
else
{
   $orderby = $this->uri->segment(3);
}
Another way to go is to add the key in front of the value like a query string and use the $this->uri->uri_to_assoc(n) method.


Messages In This Thread
uri segments order - by El Forum - 12-30-2008, 07:53 AM
uri segments order - by El Forum - 12-30-2008, 08:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB