Question : redirect in codeigniter
Answered by : ankur-prajapati
//You can use redirect in codeigniter by loading helper 'url'
$this->load->helper('url');
//The redirects functions accepts two parameters to execute the function first is 'Location Url' and second parameter allows the developer to use different HTTP commands to perform the redirect "location" or "refresh".
if (!$user_logged_in)
{ redirect('/account/login', 'refresh');
}
Source : | Last Update : Thu, 11 Jun 20
Question : codeigniter 4 redirect to home
Answered by : matteo-puppis
return redirect()->to(site_url());
Source : https://stackoverflow.com/questions/58707864/codeigniter-4-redirect-function-not-working | Last Update : Mon, 15 Mar 21
Question : codeigniter redirect
Answered by : alberto-peripolli
$this->load->helper('url');
redirect('/account/login', 'refresh');
Source : https://stackoverflow.com/questions/723883/redirect-with-codeigniter | Last Update : Fri, 01 May 20
Question : codeigniter 4 redirect with data
Answered by : john-lester-legaspi
// Codeigniter 4 redirect with data
return redirect()->to('/user/profile/')->with('success', 'Profile updated successfully');
Source : | Last Update : Sun, 02 Jan 22
Question : redirect to codeigniter 4
Answered by : john-lester-legaspi
$this->load->helper('url');
Source : https://stackoverflow.com/questions/58707864/codeigniter-4-redirect-function-not-working | Last Update : Sat, 09 Oct 21