Answers for "codeigniter 4 redirect back"

PHP
0

redirect back in codeigniter

This should help :
http://www.codeigniter.com/user_guide/libraries/user_agent.html

$this->load->library('user_agent');
if ($this->agent->is_referral()){
    echo $this->agent->referrer();
}

or straight PHP:

redirect($_SERVER['HTTP_REFERER']);
Posted by: Guest on December-24-2020
1

codeigniter 4 redirect to home

return redirect()->to(site_url());
Posted by: Guest on March-08-2021

Code answers related to "codeigniter 4 redirect back"

Browse Popular Code Answers by Language