Codeigniter redirect refresh


Codeigniter redirect refresh – Redirect funciton is used to “header redirect” to the specified URL. To redirect refresh you need to pass second parameter as “refresh” . You need to load url helper to use this function so make sure you have already loaded this helper. Here in this article we are going to explain how you can use redirect function to redirect on specified url.


Codeigniter redirect refresh Syntax

Note : $this->load->helper(‘url’); should be loaded before redirect.


redirect("location","refresh");

Where First option is location ie . URI and second option is optional.
If you want to redirect refresh use second parameter.

Codeigniter redirect Example


redirect("/post/66","refresh");


Advertisements

Add Comment

📖 Read More