diff --git a/code/app/core/App.php b/code/app/core/App.php index 7f90bb3..0a444b7 100644 --- a/code/app/core/App.php +++ b/code/app/core/App.php @@ -12,7 +12,6 @@ public function __construct() // controller if( file_exists('../app/controllers/' . $url[0] . '.php') ) { $this->controller = $url[0]; - unset($url[0]); } require_once '../app/controllers/' . $this->controller . '.php'; @@ -22,11 +21,12 @@ public function __construct() if( isset($url[1]) ) { if( method_exists($this->controller, $url[1]) ) { $this->method = $url[1]; - unset($url[1]); } } // params + unset($url[0]); + unset($url[1]); if( !empty($url) ) { $this->params = array_values($url); }