Welcome Guest, Not a member yet? Register   Sign In
Removing Controller Name
#1

[eluser]pengenbelajarCI[/eluser]
I've watching screencast, and i very curious of how to removing controller from url.

I've tried this on rout

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

$routearr = array ('main','company','users');
foreach ($routearr as $v ) {
    $route[$v] = $v;    
    $route[$v.'/(.*)'] = $v."/$1";    
}
$route['/(.*)'] = "main/index/$1";

But it doesnt work, because i always get 404 error


Messages In This Thread
Removing Controller Name - by El Forum - 05-24-2009, 10:34 PM
Removing Controller Name - by El Forum - 05-25-2009, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB