function delete() { $education = new Education(); $education->_delete($this->edu_id); $this->session->set_flashdata('message', 'Education deleted.'); redirect('staffs/' . $this->staff_id . '/educations/index'); }