Help with routes

#11
[eluser]wiredesignz[/eluser]
_remap() is still passed the controller method by the router, but this was actually the fix for your first problem.

#12
[eluser]louis w[/eluser]
@mironcho: No worries, I missed it myself on the paste too.

Code:
$route['admin/(.*)']    = "admin/$1";
$route['admin']         = "admin";
$route['(.*)']          = "page/$1";

This works for /admin/foo requests. I guess I will just use this one instead of the more compact.

#13
[eluser]louis w[/eluser]
NEVERMIND!

They both work. I do not know why it wasn't working for me before. Thanks for the help.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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