Пример #1
0
 function __construct()
 {
     parent::__construct();
     $this->uid = is_login();
     if (!$this->uid) {
         $this->redirect('User/login');
     }
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->uid = is_login();
     if (!$this->uid && ACTION_NAME != 'callback') {
         $this->redirect('User/login');
     }
     $this->pageTitle = "快捷支付";
 }
Пример #3
0
 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;
     }
 }
Пример #4
0
 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');
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->uid = is_login();
     $this->pageTitle = "我的钱包";
 }
Пример #8
0
 function __construct()
 {
     parent::__construct();
     $this->types = $this->config->item('types');
 }
Пример #9
0
 public function __construct($id, $module = null)
 {
     parent::__construct($id, $module);
     $this->userModel = User::model();
 }