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

[eluser]Lukifer[/eluser]
I haven't tested it myself, but it works much like regular expressions, so you should be able to use:

Code:
$route['product/(:num)/(:num)'] = "products/$1/$2";

If that doesn't work, the normal regex version should:

Code:
$route['product/([0-9]+)/([0-9]+)'] = "products/$1/$2";


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