Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion initphp/initphp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -782,4 +783,4 @@ public function init_db($db = 'default') {
$this->dao->db->init_db($db);
return $this->dao->db;
}
}
}