0
public function delete_app()
{
    $id=$this->uri->segment(3);
    $this->db->set('is_delete',1);
    $this->db->where('id',$id);
    $this->db->update('app');
    redirect("main_controller/display_app/-2");
}
eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Naman Mehta
  • 41
  • 1
  • 8

1 Answers1

0

redirect resides in URL helper so assumed it as you have load it. you can use location or refresh but sometime location has a issues in working.

try this:- redirect('/account/login', 'refresh');

Divyarajsinh
  • 156
  • 8