class Redirect

Methods

static Redirect
getInstance()

No description

static void
back()

Back to previous page

static void
toPath(string $path)

Redirect to SLiMS Path

static Redirect
withHeader(splat ...$arguments)

Setup custom Header

static Redirect
withMessage(string $key, string $message)

With flash message

void
refresh(string $anotherPage = '')

Refresh current page or to another page

void
to(string $urlOrPath = '')

Redirect to another page

Details

at line 26
static Redirect getInstance()

No description

Return Value

Redirect

at line 37
static void back()

Back to previous page

Return Value

void

at line 49
static void toPath(string $path)

Redirect to SLiMS Path

Parameters

string $path

Return Value

void

at line 60
static Redirect withHeader(splat ...$arguments)

Setup custom Header

Parameters

splat ...$arguments

Return Value

Redirect

at line 82
static Redirect withMessage(string $key, string $message)

With flash message

Parameters

string $key
string $message

Return Value

Redirect

at line 94
void refresh(string $anotherPage = '')

Refresh current page or to another page

Parameters

string $anotherPage

Return Value

void

at line 106
void to(string $urlOrPath = '')

Redirect to another page

Parameters

string $urlOrPath

Return Value

void