Answers for "return redirect to in codeigniter"

PHP
4

redirect in codeigniter

//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');
}
Posted by: Guest on June-04-2020
0

redirect to codeigniter 4

$this->load->helper('url');
Posted by: Guest on October-02-2021

Browse Popular Code Answers by Language