public function __construct() { parent::__construct(); if (!in_array($this->loginUserInfo['username'], array('aozhongxu'))) { $this->renderError('你没有权限访问!'); } }
public function __construct() { parent::__construct(); $this->load->model('ShopModel', 'shopModel'); // 删除所有的缓存 $this->shopModel->deleteShopCache(); }
function __construct() { parent::__construct(); $this->load->database(); $this->load->library(array('ion_auth', 'form_validation')); $this->load->helper(array('url', 'language')); $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth')); $this->lang->load('auth'); }
public function __construct() { parent::__construct(); $menuArr = array(); foreach (DocVars::$CATEGORY as $i => $title) { $menuItem = array('title' => $title, 'url' => '/list/' . $i . '/'); $menuArr[] = $menuItem; if ($menuItem['url'] == Url::getPath()) { $this->backendMenuInfo = $menuItem; $this->backendMenuInfo['parent_title'] = $this->backendMenuList['category']['title']; $this->backendMenuInfo['parent_code'] = Arr::get('code', $this->backendMenuList['category'], ''); } } $this->backendMenuList['category']['menu'] = $menuArr; $this->view->assign(array('backendMenuList' => $this->backendMenuList, 'backendMenuInfo' => $this->backendMenuInfo)); }
public function __construct() { parent::__construct(); $this->model = new ProductsModel(); }
public function __construct() { parent::__construct(); $this->model = new UserModel(); }
public function __construct() { parent::__construct(); $this->load->model('ProjectPropertyModel', 'projectPropertyModel'); }
public function __construct() { parent::__construct(); $this->load->model('CouponCodeModel', 'couponCodeModel'); }
public function __construct() { parent::__construct(); $this->load->model('BackupModel', 'backupModel'); }
public function __construct() { parent::__construct(); Asset::add('document-js', URL::to('media/backend/js/document.js')); }
public function __construct() { parent::__construct(); $this->load->model('ArticleModel', 'articleModel'); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->load->model('ExchangeGoodsModel', 'exchangeGoodsModel'); }
public function __construct() { parent::__construct(); $this->load->model('CustomerModel', 'customerModel'); }
public function __construct() { parent::__construct(); $this->load->model('OfflineOrderModel', 'offlineOrderModel'); }
protected function __construct() { parent::__construct('poker'); }
function __construct($module = NULL) { $layout = "layout.default"; parent::__construct($module, $layout); $this->updateData(); }
public function __construct() { parent::__construct(); $this->load->model('ProjectModel', 'projectModel'); $this->projectModel->deleteProjectsCache(); }
public function __construct() { parent::__construct(); $this->load->model('UserModel', 'userModel'); }
function __construct($module = NULL) { $layout = "layout.default"; parent::__construct($module, $layout); }
public function __construct() { parent::__construct(); $this->sliderModel = new SliderModel(); }
public function __construct() { parent::__construct(); $this->load->model('CategoryModel', 'categoryModel'); $this->categoryModel->deleteCacheCategories(); }
public function __construct() { parent::__construct(); $this->timeSetting = array(BeauticianModel::ALL_DAY => '全天', BeauticianModel::MORNING_SHIFT => '早班', BeauticianModel::NIGHT_SHIFT => '晚班', BeauticianModel::MIDDAY_SHIFT => '中班', BeauticianModel::REST_SHIFT => '休息'); $this->load->model('BeauticianModel', 'beauticianModel'); }