class Redirector extends Router (View source)

Properties

static protected array $httpRoutes Store normal routes from Router
static protected array $httpParamRoutes Store param routes from Router
static protected string $prefixNS Define namespace prefix to Controllers from Router
static protected string $prefixPath Define path prefix to routes from Router

Methods

static bool
find(string $route, string $path, array $matches)

Get params from routes using regex

from Router
static void
route(string $route, array $args = array(), int $code = 302)

Redirect to route based

static void
action(string $name, array $args = array(), int $code = 302)

Redirect to route based

Details

static protected bool find(string $route, string $path, array $matches)

Get params from routes using regex

Parameters

string $route
string $path
array $matches

Return Value

bool

static void route(string $route, array $args = array(), int $code = 302)

Redirect to route based

Parameters

string $route
array $args
int $code

Return Value

void

Exceptions

Exception

static void action(string $name, array $args = array(), int $code = 302)

Redirect to route based

Parameters

string $name
array $args
int $code

Return Value

void

Exceptions

Exception