redirect::send

Redirects the user to a new URL

redirect::send($url = false, $code = false, $send = true)

Parameters

$url (string)
The URL to redirect to
$code (boolean)
The HTTP status code, which should be sent (301, 302 or 303)
$send (boolean)
If true, headers will be sent and redirection will take effect

Return values