From bbf05d4844514a02954ab2aeb06df1928047e9f1 Mon Sep 17 00:00:00 2001 From: ahmadin Date: Mon, 4 Jan 2021 11:24:54 +0700 Subject: [PATCH] memindahkan fungsi unset() ke baris 28 dan 29 di file App.php --- code/app/core/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }