Commit 3789972a authored by Taylor Otwell's avatar Taylor Otwell

fix bug in controller auto-loading.

parent 610d8827
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment