示例#1
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->helper('url');
     $this->load->helper(array('form', 'url'));
     $this->load->library('excel');
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->library('form_validation');
     $this->load->library('ion_auth');
     $this->load->model('service_model');
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('ion_auth');
     $this->load->library('form_validation');
     $this->load->helper('url');
     // Load MongoDB library instead of native db driver if required
     $this->config->item('use_mongodb', 'ion_auth') ? $this->load->library('mongo_db') : $this->load->database();
     $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');
     $this->load->helper('language');
 }
示例#5
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->library('form_validation');
     $this->load->library('transaction_library');
     $this->load->library('utils');
     $this->load->model('service_model');
     $this->load->config('ion_auth', TRUE);
     $this->lang->load('auth');
     $this->load->helper('language');
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     }
 }