Router

package

Default

Methods

Defines a route w/ callback and method

__callstatic(string $method,  $params) 
static

Arguments

$method

string

$params

Runs the callback for the given request

dispatch() 
static

Defines callback if route is not found

error(string $callback) 
static

Arguments

$callback

string

Don't load any further routes on match

haltOnMatch(boolean $flag = true) 
static

Arguments

$flag

boolean

Call object and instantiate

invokeObject(object $callback, array $matched = null, string $msg = null) 
static

Arguments

$callback

object

$matched

array

array of matched parameters

$msg

string

Properties

halts

halts : 
static

Type(s)

routes

routes : 
static

Type(s)

methods

methods : 
static

Type(s)

callbacks

callbacks : 
static

Type(s)

errorCallback

errorCallback : 
static

Type(s)

patterns

patterns : 
static

Type(s)