Could sombody please tell me why do we need to use a "refresh" parameter for redirect function in codeigniter.
redirect('/index.php/it_inventory/get_users', 'refresh');
If you are familiar with core PHP header("Location:url_here") so this might be a new addition in your knowledge that redirection using header with the following syntax is also possible which is used in CI. When you pass the second argument refresh so the follow line works. And its optional. header("Refresh:0;url=".$uri)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With