Exemplo n.º 1
0
 /**
  * 初始化
  */
 public function __construct()
 {
     $this->dao = $this->load('dao', 'd');
     //导入D
     $this->dao->run_db();
     //初始化db
     $this->dao->run_cache();
     //初始化cahce
 }
Exemplo n.º 2
0
 /**
  * 初始化
  */
 public function __construct()
 {
     $this->dao = $this->load('dao', 'd');
     //导入D
     $this->dao->run_db();
     //初始化db
     $this->dao->run_cache();
     //初始化cahce
     $this->dao->run_nosql();
     //初始化nosql 默认是mongoDB
     $this->dao->run_search();
     //初始化search
 }