From a9e662ba214aeca22e14c5cac5f48ae04d3e0168 Mon Sep 17 00:00:00 2001 From: lvtao320 Date: Tue, 9 May 2017 03:36:03 +0800 Subject: [PATCH] Update initphp.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dao层使用$this->common的BUG --- initphp/initphp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initphp/initphp.php b/initphp/initphp.php index 4f0015a..9d22788 100644 --- a/initphp/initphp.php +++ b/initphp/initphp.php @@ -767,6 +767,7 @@ class Dao extends coreInit { * 初始化 */ public function __construct() { + parent::__construct(); $this->dao = $this->load('dao', 'd'); //导入D $this->dao->run_db(); //初始化db $this->dao->run_cache(); //初始化cahce @@ -782,4 +783,4 @@ public function init_db($db = 'default') { $this->dao->db->init_db($db); return $this->dao->db; } -} \ No newline at end of file +}