function __construct() { parent::__construct(); $this->uid = is_login(); if (!$this->uid) { $this->redirect('User/login'); } }
function __construct() { parent::__construct(); $this->uid = is_login(); if (!$this->uid && ACTION_NAME != 'callback') { $this->redirect('User/login'); } $this->pageTitle = "快捷支付"; }
function __construct() { parent::__construct(); $this->load->library('session'); $this->load->model('user_model', 'users'); if ($this->session->userdata('admin') or $this->session->userdata('user')) { $this->authen = true; } }
function __construct() { parent::__construct(); $this->load->library('user_agent'); if ($this->agent->is_mobile() or $this->input->get('theme') === 'mobile') { Theme::set_theme('mobile'); } if ($this->data['mobile_state'] === 'yes') { Theme::set_theme('mobile'); } $this->data['noresult'] = '没有内容'; $this->load->library('contentfactory'); //分类 $this->config->load('cache_categories'); $this->cats = $this->config->item('categories'); //类型 $this->types = $this->config->item('types'); }
public function __construct() { parent::__construct(); $this->gangkou = D('Gangkou'); }
public function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->uid = is_login(); $this->pageTitle = "我的钱包"; }
function __construct() { parent::__construct(); $this->types = $this->config->item('types'); }
public function __construct($id, $module = null) { parent::__construct($id, $module); $this->userModel = User::model(); }