Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB