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 +}