Help with routes

_remap() is still passed the controller method by the router, but this was actually the fix for your first problem.

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

$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.

[eluser]louis w[/eluser]

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-2020 MyBB Group.