Welcome Guest, Not a member yet? Register   Sign In
Routing, regular expressions and category paths...
#2

[eluser]mddd[/eluser]
You could get the variables in the functions themselves:
Code:
function category()
{
  $path = $this->uri->segment(3) . '/' . $this->uri->segment(4);
  ...
}

function product()
{
  $product_id = $this->uri->segment(3);
  $path = $this->uri->segment(4) . '/' . $this->uri->segment(5);
  ...
}


Messages In This Thread
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 07:58 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:03 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:12 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:12 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:21 AM
Routing, regular expressions and category paths... - by El Forum - 07-26-2010, 08:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB