I am getting an error in my code and don't know why. Here is the error :
Fatal error: Call to undefined method Display::index() in
Here is the controller part that causes the error:
function delete(){
$this->load->model('display_model');
$this->display_model->delete_row();
$this->index();
}
and model part if needed just in case:
function delete_row()
{
$this->db->where('QID', $this->uri->segment(3));
$this->db->delete('tblquestions');
}