From 622f3af6509298f781c712ce771c900203a655b7 Mon Sep 17 00:00:00 2001 From: moling <365024424@qq.com> Date: Thu, 15 Sep 2016 11:20:34 +0800 Subject: [PATCH] =?UTF-8?q?conf=E7=B1=BB=E7=9A=84=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ppphp/route.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/ppphp/route.php b/core/ppphp/route.php index 4bcadd8..2bf84e7 100755 --- a/core/ppphp/route.php +++ b/core/ppphp/route.php @@ -13,7 +13,7 @@ class route public $route; public function __construct() { - $route = conf::all('route'); + $route = conf::get('route'); if(isset($_SERVER['REQUEST_URI'])) { $pathstr = str_replace($_SERVER['SCRIPT_NAME'],'',$_SERVER['REQUEST_URI']); //丢掉?以及后面的参数 @@ -56,8 +56,8 @@ public function __construct() } } else { - $this->ctrl = conf::get('DEFAULT_CTRL','route'); - $this->action = conf::get('DEFAULT_ACTION','route'); + $this->ctrl = conf::get('route', 'DEFAULT_CTRL'); + $this->action = conf::get('route', 'DEFAULT_ACTION'); } } @@ -69,4 +69,4 @@ public function urlVar($num,$default = false) return $default; } } -} \ No newline at end of file +}