Routing Q.

#1
[eluser]RobertB.[/eluser]
Hello to all,
I'm having problem with the routing system.

This works flawless if I used the table id(numbers).

Code:
$route['(:num)'] = "listings/subcats/$1";
$route['category/(:num)'] = "listings/states/$1";

But if I try to use a permalink field that I have on the table and change the routing to this only the first one works the second one does not take me to listings/states/ but instead takes me to listings/subcats/ again and obviously it give me the Message: Invalid argument supplied for foreach().

Code:
$route['(:any)'] = "listings/subcats/$1";
$route['category/(:any)'] = "listings/states/$1";
Can anyone explain this?

Thanks


Messages In This Thread
Routing Q. - by El Forum - 04-25-2010, 02:54 PM
Routing Q. - by El Forum - 04-25-2010, 02:59 PM
Routing Q. - by El Forum - 04-25-2010, 05:01 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.