function _initialize() { parent::_initialize(); $this->job_model = D("Common/Job"); $this->job_category_model = D("Common/JobCategory"); $this->area_model = D("Common/Area"); }
function _initialize() { parent::_initialize(); $this->servers_model = D("Server/Servers"); $this->order_model = D("Server/Order"); $this->serversell_model = D("Server/ServersSell"); }
public function _initialize() { parent::_initialize(); $this->cposts_model = D('Common/Cposts'); $this->posts_model = D('Common/Posts'); $this->cterm_relationships_model = D('Common/CtermRelationships'); $this->term_relationships_model = D('Common/TermRelationships'); $this->terms_model = D('Common/Terms'); }
function _initialize() { parent::_initialize(); $this->product_model = D("Common/Product"); $this->story_model = D("Common/Story"); $this->store_model = D("Common/Store"); $this->activity_model = D("Common/Activity"); $this->headimg_model = D("Common/HeadImg"); }
public function _initialize() { parent::_initialize(); if (!$_SESSION['user']['id']) { $this->redirect(U('User/login/index')); } $this->user = M('Member')->where(array("id" => $_SESSION['user']['id']))->find(); $this->assign('user', $this->user); $this->jobs = new JobsModel(); }
public function _initialize() { parent::_initialize(); if (!$_SESSION['user']['id']) { $this->redirect(U('User/login/index')); } $this->order_obj = D('Common/Order'); $this->user = M('Member')->where(array("id" => $_SESSION['user']['id']))->find(); $this->assign('user', $this->user); }
function _initialize() { parent::_initialize(); $this->check_login(); $this->check_user(); }
function _initialize() { parent::_initialize(); $this->qiushi_model = D("Qiushi"); }
function _initialize() { parent::_initialize(); $this->a_class = array("粤", "冀", "陕", "吉", "京", "沪", "苏", "鄂", "琼", "渝", "甘", "黑", "宁", "青", "贵", "新", "浙", "皖", "湘"); }