public function indicatorDelete($profID, $ref_id) { if (!$this->session->userdata('user_id')) { redirect('/users/login', 'location'); } $indicator_model = new indicator_model(); $updateResult = $indicator_model->deleteIndicator($profID, $ref_id); if ($updateResult) { $form_message = 'Add Success!'; $this->load->view('header'); $this->load->view('nav'); $this->load->view('sidebar'); $this->load->view('indicator_view'); $this->load->view('footer'); $this->redirectIndex($profID, $ref_id); } }