Codeigniter URL helper redirect()

Codeigniter URL helper redirect()

Syntax:

Redirect (url, Method, Http_code)

Parameters:
url – The path you want to redirect to.
Method – The http method used to retrieve the target page
Http_code – Specifies the http response code to be sent to the client

Return type:
void

Description:
Used to substitute a page with the webpage specified.

Example:

Redirect ("produce/Data");

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.