Loading…

How we can redirect a page in CodeIgniter?

We can use the redirect() function to redirect on any page.

Example

                                        

$this->load->helper('url');       // Firstly you have to load url helper.
if (condition != TRUE) {
    redirect('login_page');
}

Suggest An Answer

No suggestions avaliable!

Latest post from CodeIgniter Interview Questions

Ask Question