Method | Description | |
---|---|---|
redirectAction ( string $route, boolean $permanent = false ) : |
Redirects to another route. | |
urlRedirectAction ( string $path, boolean $permanent = false, boolean $scheme = null, integer $httpPort = 80, integer $httpsPort = 443 ) : |
Redirects to a URL. |
public redirectAction ( string $route, boolean $permanent = false ) : |
||
$route | string | The route pattern to redirect to |
$permanent | boolean | Whether the redirect is permanent or not |
return | A Response instance |
public urlRedirectAction ( string $path, boolean $permanent = false, boolean $scheme = null, integer $httpPort = 80, integer $httpsPort = 443 ) : |
||
$path | string | The path to redirect to |
$permanent | boolean | Whether the redirect is permanent or not |
$scheme | boolean | The URL scheme (null to keep the current one) |
$httpPort | integer | The HTTP port |
$httpsPort | integer | The HTTPS port |
return | A Response instance |