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");
}
Asked
Active
Viewed 265 times
0

eyllanesc
- 235,170
- 19
- 170
- 241

Naman Mehta
- 41
- 1
- 8
-
are you sure you don't need header("Location:..."); here? – Russ J Jul 16 '19 at 16:04
-
header function is working. but i just want to know why redirect function is not working there. @RussJ – Naman Mehta Jul 16 '19 at 16:29
-
I don't think there is such a keyword as "redirect" in PHP. – Russ J Jul 16 '19 at 16:39
-
https://stackoverflow.com/questions/768431/how-do-i-make-a-redirect-in-php – Russ J Jul 16 '19 at 16:39
1 Answers
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