创建表 在安装或升级时调用
mdl_create function.
public mdl_create_table ( ) : void | ||
return | void |
private function table_admin() { include_once BG_PATH_MODEL . "admin.class.php"; //载入管理帐号模型 $_mdl_admin = new MODEL_ADMIN(); $_arr_adminTable = $_mdl_admin->mdl_create_table(); if ($_arr_adminTable["alert"] != "y020105") { $this->obj_api->halt_re($_arr_adminTable); } }
private function table_admin() { include_once BG_PATH_MODEL . "admin.class.php"; //载入管理帐号模型 $_mdl_admin = new MODEL_ADMIN(); $_arr_adminTable = $_mdl_admin->mdl_create_table(); $this->tplData["db_alert"]["admin_table"] = array("alert" => $_arr_adminTable["alert"], "status" => substr($_arr_adminTable["alert"], 0, 1)); }