public function __construct() { parent::__construct(); if (!Sentry::check()) { $this->message->set('danger', 'You must login to access this module', TRUE, 'message'); redirect(website_url('auth')); } }
public function __construct() { parent::__construct(); $this->load->library('parser'); if (Sentry::check()) { if ($this->uri->segment(3) != 'logout') { redirect(website_url('dashboard')); } } }
public function __construct() { parent::__construct(); $this->load->library("security"); $this->load->library("timezone"); $this->load->library("parser"); $this->load->model('client_model'); if (!Sentry::check()) { $this->message->set('danger', 'You must login to access this module', TRUE, 'message'); redirect(website_url('auth')); } }