function __construct()
 {
     parent::__construct();
     self::setCookieKey("ADBCDE");
     if (!$this->Model) {
         $this->Model = self::load('model', 'data');
     }
     //加载模板
 }
Exemple #2
0
 function __construct()
 {
     parent::__construct();
     if (!$this->DB) {
         $this->DB = self::db_init();
     }
     if (!$this->redis) {
         $this->redis = self::redis_init();
     }
     header('Content-type: application/json');
 }