Redirect
extends Base
in package
implements
Document
The MVC alternative to the redirect() function.
Usage: Return a Redirect object as view in your controller.
Because redirect() function stops execution of the script, the flow of the MVC classes is interupted. The Redirect class completes the MVC flow and send the headers via the Website->handleRequest()
(Compatible with Sledgehammer\HttpServer)
Interfaces, Classes, Traits and Enums
- Document
- A Document is a standalone component, that can't be wrapped inside another component.
Table of Contents
- $permanently : mixed
- $url : mixed
- __call() : mixed
- Report that the $method doesn't exist.
- __callStatic() : mixed
- Report that the $method doesn't exist.
- __construct() : mixed
- __get() : mixed
- Report that $property doesn't exist.
- __set() : mixed
- Report that $property doesn't exist and set the property to the given $value.
- __toString() : string
- The object is used as an string.
- getHeaders() : array<string|int, mixed>
- The headers for this type of document.
- isDocument() : bool
- Determines if the component is a Document.
- render() : mixed
Properties
$permanently
private
mixed
$permanently
$url
private
mixed
$url
Methods
__call()
Report that the $method doesn't exist.
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__callStatic()
Report that the $method doesn't exist.
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(mixed $url[, mixed $permanently = false ]) : mixed
Parameters
- $url : mixed
- $permanently : mixed = false
Return values
mixed —__get()
Report that $property doesn't exist.
public
__get(string $property) : mixed
Parameters
- $property : string
Return values
mixed —__set()
Report that $property doesn't exist and set the property to the given $value.
public
__set(string $property, mixed $value) : mixed
Parameters
- $property : string
- $value : mixed
Return values
mixed —__toString()
The object is used as an string.
public
__toString() : string
Return values
string —getHeaders()
The headers for this type of document.
public
getHeaders() : array<string|int, mixed>
Must include 'http' headers.
Return values
array<string|int, mixed> —isDocument()
Determines if the component is a Document.
public
isDocument() : bool
This allows errors to be wrapped in a layout.
Return values
bool —render()
public
render() : mixed