class Redirect implements ResponseInterface (View source)

Methods

static Redirect
getInstance()

Get redirection instance

withInput(array $data = [])

Redirection with the query information

withFlash(string $key, mixed $value)

Redirection with define flash information

to(string $path, int $status = 302)

Redirect to another URL

route(string $name, array $data = [], bool $absolute = false)

Redirect with route definition

back(int $status = 302)

Redirect on the previous URL

void
sendContent()

No description

mixed
__invoke()

__invoke

string
__toString()

__toString

Details

static Redirect getInstance()

Get redirection instance

Return Value

Redirect

Redirect withInput(array $data = [])

Redirection with the query information

Parameters

array $data

Return Value

Redirect

Redirect withFlash(string $key, mixed $value)

Redirection with define flash information

Parameters

string $key
mixed $value

Return Value

Redirect

Redirect to(string $path, int $status = 302)

Redirect to another URL

Parameters

string $path
int $status

Return Value

Redirect

Redirect route(string $name, array $data = [], bool $absolute = false)

Redirect with route definition

Parameters

string $name
array $data
bool $absolute

Return Value

Redirect

Redirect back(int $status = 302)

Redirect on the previous URL

Parameters

int $status

Return Value

Redirect

void sendContent()

No description

Return Value

void

mixed __invoke()

__invoke

Return Value

mixed

string __toString()

__toString

Return Value

string