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

[eluser]mddd[/eluser]
Logical. If the last two items are not numbers, the route does not match. If you want to match the route even if there are no numbers at the end, you need to change the route so it still matches without the numbers.
In this case, I would suggest making the route simply
Code:
$route['Resource-Centre/Catalogue(.*)'] = 'resource-centre/catalogue$1';
and then checking in the controller (for instance in the constructor method) which information is requested exactly.
Or if you make your urls all lowercase, you wouldn't even need the route.

Edit:Exactly what n0xie said.


Messages In This Thread
Routing Problem - by El Forum - 06-14-2010, 08:07 AM
Routing Problem - by El Forum - 06-14-2010, 08:46 AM
Routing Problem - by El Forum - 06-14-2010, 08:48 AM
Routing Problem - by El Forum - 06-14-2010, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB