Пример #1
0
 public function __construct()
 {
     // Call the Controller constructor
     parent::__construct();
     $this->load->model('guest_model');
     $this->is_authenticated = $this->is_authenticated && $this->input->is_ajax_request();
 }
Пример #2
0
 public function __construct()
 {
     // Call the Controller constructor
     parent::__construct();
     if (!$this->is_authenticated || is_null($this->current_user)) {
         $this->redirect_to_login();
     }
     $this->load->model('position_model');
 }
Пример #3
0
 protected function __construct()
 {
     parent::__construct();
 }