Welcome Guest, Not a member yet? Register   Sign In
URI Routing with more than one variable?
#1

[eluser]juddmuir[/eluser]
Hi,

Is it possible to set up a routing rule that took e.g.
example.com/products/category_id/product_id
and passed BOTH the category_id and the product_id to whatever function?

In the User Guide, there's an example for only one variable:
$route['product/(:num)'] = "catalog/product_lookup_by_id/$1";

Thanks in advance for any replies.


Messages In This Thread
URI Routing with more than one variable? - by El Forum - 02-02-2009, 12:57 PM
URI Routing with more than one variable? - by El Forum - 02-02-2009, 01:20 PM
URI Routing with more than one variable? - by El Forum - 02-02-2009, 01:49 PM
URI Routing with more than one variable? - by El Forum - 02-03-2009, 11:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB