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

View File

@@ -130,7 +130,7 @@ class Autoloader {
*/
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;
}