Skip to content
defvayne23 edited this page Jan 13, 2012 · 2 revisions

redirect()

Description

$this->redirect(string $location[, int $http_code = 302]);

Forwards the user to the URL given. Passes along headers to indicate redirect code.

Parameters

  • location
    Location where to redirect user.
  • http_code
    HTTP Code to send to the browser.

Examples

$this->redirect("http://google.com/");
$this->redirect("/new-page/", 301);

error

[More Info](Error Layer)

load

[More Info](Load Layer)

db

[More Info](Database Layer)

< Back to Index

Clone this wiki locally