Welcome Guest, Not a member yet? Register   Sign In
Default controller for subdirectory of controllers?
#1

[eluser]Bramme[/eluser]
Hey all

My application has a backend part, which I placed in a subdirectory off my controllers.

This works great, but I was wondering if there was a way to set a second default controller for that subdirectory.

At the moment I have this in my routes.php config file

Code:
$route['default_controller'] = "content";
$route['scaffolding_trigger'] = "";

$route['admin'] = 'admin/general';
$route['admin/'] = 'admin/general';
$route['admin(.*)'] = 'admin$1';
$route['(.*)'] = 'content/$1';

I was just wondering if there was any way to make this more efficient...




Theme © iAndrew 2016 - Forum software by © MyBB