Welcome Guest, Not a member yet? Register   Sign In
Question about routes / default controller
#1

[eluser]louis w[/eluser]
I am working on a CMS that will have two core controllers admin and page. In order to get the cleanest urls possible I want to map EVERYTHING except admin calls to my page controller.

This is what I have in the routes file:

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

$route['default_controller'] = "page";

If I remove the default_controller value it errors.

Shouldn't this still work because I am adjusting the url with the route to send everything to page so it shouldn't need the default_controller.


Messages In This Thread
Question about routes / default controller - by El Forum - 04-23-2008, 07:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB