Horje
codeigniter 4 redirect to home Code Example
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');
}
codeigniter redirect
$this->load->helper('url');
redirect('/account/login', 'refresh');
codeigniter 4 redirect to home
return redirect()->to(site_url());
redirect to codeigniter 4
 $this->load->helper('url');




Php

Related
php json encode Code Example php json encode Code Example
var dump php look clear Code Example var dump php look clear Code Example
laravel belongs to Code Example laravel belongs to Code Example
What does PEAR stands for? Code Example What does PEAR stands for? Code Example
toarray php Code Example toarray php Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7