I\'ve got a lot controller in my Codeigniter apps, ex: Signup, Profile, Main, etc..
Now I want to build \"User\" controller.
what I want:
<
You can also use a foreach statement for this. That way you can keep your controllers in a nice neat list.
$controller_list = array('auth','dashboard','login','50_other_controllers');
foreach($controller_list as $controller_name)
{
$route[$controller_item] = $controller_name;
}
$route['(:any)'] = "user/display/$1";