function _initialize() { parent::_initialize(); // 获取数据库对象实例 $this->db = Db::getInstance(); $this->dbName = C('DB_NAME'); }
function _initialize() { parent::_initialize(); import("ORG.Io.Dir"); import("ORG.Util.Image"); set_time_limit(0); $this->products_image_path = "./Public/Uploads/Products"; $this->products_temp_path = "./Public/Uploads/Temp"; header("Content-Type:text/html; charset=utf-8"); }
function _initialize() { parent::_initialize(); $this->virtual_catelist = get_virtualcat_arr(); }
function _initialize() { parent::_initialize(); $dao = D('Article'); $this->article_list = $dao->select(); }
function _initialize() { parent::_initialize(); $map['type'] = array('not in', "'txt','img','flash','code',''"); $this->type = $this->dao->field('type')->group('type')->where($map)->select(); }