Model(); } // 析构函数 function Model() { global $dsql; if ($GLOBALS['cfg_mysql_type'] == 'mysqli') { $this->dsql = $this->db = isset($dsql)? $dsql : new DedeSqli(FALSE); } else { $this->dsql = $this->db = isset($dsql)? $dsql : new DedeSql(FALSE); } } // 释放资源 function __destruct() { $this->dsql->Close(TRUE); } }