diff --git a/mvcframework/app/libraries/Core.php b/mvcframework/app/libraries/Core.php index 2992b68..13dfd05 100644 --- a/mvcframework/app/libraries/Core.php +++ b/mvcframework/app/libraries/Core.php @@ -36,6 +36,10 @@ public function __construct(){ // Unset 1 index unset($url[1]); } + }elseif(isset($url[0])){ + $this->currentMethod = $url[0]; + // Unset 0 index + unset($url[0]); } // Get params