codeigniter controller redirect to url code example
Example 1: codeigniter redirect
$this->load->helper('url');
redirect('/account/login', 'refresh');
Example 2: codeigniter 4 redirect to home
return redirect()->to(site_url());
$this->load->helper('url');
redirect('/account/login', 'refresh');
return redirect()->to(site_url());