public function __construct() { parent::__construct(); $this->load->helper('general_helper'); $this->load->model('users'); $this->load->model('events'); is_admin_log_in(); $this->load->library('breadcrumbs'); }
public function __construct() { parent::__construct(); if (!$this->session->userdata('logged_in')) { redirect('/admin'); } $this->load->helper('general_helper'); $this->load->model('users'); $this->load->model('events'); is_admin_log_in(); $this->load->library('breadcrumbs'); }