예제 #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->logueado == false) {
         $this->getViewLogin();
     }
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->logged_in()) {
         redirect(site_url('/auth/login'));
     }
     $this->load->helper(array('form', 'url'));
 }
예제 #3
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');
 }