fix bug in controller auto-loading.
This commit is contained in:
parent
610d8827c4
commit
3789972a35
|
@ -130,7 +130,7 @@ protected static function library($class)
|
||||||
*/
|
*/
|
||||||
protected static function controller($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;
|
return CONTROLLER_PATH.strtolower($controller).EXT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue