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(); }
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'); }
protected function __construct() { parent::__construct(); }