Welcome Guest, Not a member yet? Register   Sign In
Routing Problem
#2

[eluser]mddd[/eluser]
You must remember that (:any) can match more than one segment.
So the route
Code:
$route['controller/(:any)'] = 'controller/$1';
will also match the url
Code:
controller/some_method/some_value

The solution is to always put the most specific rule first. If it is not matched, a more general rule might still match.


Messages In This Thread
Routing Problem - by El Forum - 06-29-2010, 08:14 AM
Routing Problem - by El Forum - 06-29-2010, 08:52 AM
Routing Problem - by El Forum - 06-29-2010, 08:59 AM
Routing Problem - by El Forum - 06-30-2010, 01:30 AM
Routing Problem - by El Forum - 03-22-2012, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB