class Redirect (View source)

Methods

static void
only(string $path, int $code = 302, bool $trigger = true)

Redirect and stop application execution

static void
to(string $path, int $code = 302, bool $trigger = true)

Redirects to a valid path within the application

static bool|void
back(bool $only = false, bool $trigger = true)

Return to redirect to new path

Details

static void only(string $path, int $code = 302, bool $trigger = true)

Redirect and stop application execution

Parameters

string $path
int $code
bool $trigger

Return Value

void

Exceptions

Exception

static void to(string $path, int $code = 302, bool $trigger = true)

Redirects to a valid path within the application

Parameters

string $path
int $code
bool $trigger

Return Value

void

Exceptions

Exception

static bool|void back(bool $only = false, bool $trigger = true)

Return to redirect to new path

Parameters

bool $only
bool $trigger

Return Value

bool|void