if ($this->ion_auth->is_admin()) { $this->load->view('admin', $data) } else { $this->load->view('public', $data) }