diff --git a/extdbms/composer.json b/extdbms/composer.json index 9c8152c..6658e43 100644 --- a/extdbms/composer.json +++ b/extdbms/composer.json @@ -4,7 +4,7 @@ }, "autoload": { "psr-4": { - "lib\\": "lib/" + "lib\\Controllers\\": "lib/Controllers/" } } } diff --git a/extdbms/lib/Core/App.php b/extdbms/lib/Core/App.php index ddd92bf..7b30ed4 100644 --- a/extdbms/lib/Core/App.php +++ b/extdbms/lib/Core/App.php @@ -68,7 +68,7 @@ abstract class App $route = count($segments) ? $segments[0] : 'Home'; $route = $this->routeController($route); $controller = $this->getModule() . $route; - if (class_exists($controller)) { + if (class_exists($controller, true)) { $this->_controller = new $controller(); } else { throw new \Exception("[{$controller}] 해당 Controller를 찾을수 없습니다.");