fix bug in controller auto-loading.

This commit is contained in:
Taylor Otwell 2012-02-21 09:32:21 -06:00
parent 610d8827c4
commit 3789972a35
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ protected static function library($class)
*/
protected static function controller($class)
{
$controller = str_replace(array('_', '_Controller'), array('/', ''), $class);
$controller = str_replace(array('_Controller', '_'), array('', '/'), $class);
return CONTROLLER_PATH.strtolower($controller).EXT;
}