\CoreRouter

Summary

Methods
Properties
Constants
__callstatic()
error()
haltOnMatch()
invokeObject()
autoDispatch()
dispatch()
$fallback
$halts
$routes
$methods
$callbacks
$error_callback
$patterns
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$fallback

$fallback : 

Type

$halts

$halts : 

Type

$routes

$routes : 

Type

$methods

$methods : 

Type

$callbacks

$callbacks : 

Type

$error_callback

$error_callback : 

Type

$patterns

$patterns : 

Type

Methods

__callstatic()

__callstatic(string  $method,   $params) 

Defines a route w/ callback and method

Parameters

string $method
$params

error()

error(string  $callback) 

Defines callback if route is not found

Parameters

string $callback

haltOnMatch()

haltOnMatch(boolean  $flag = true) 

Don't load any further routes on match

Parameters

boolean $flag

invokeObject()

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

Call object and instantiate

Parameters

object $callback
array $matched

array of matched parameters

string $msg

autoDispatch()

autoDispatch() 

autoDispatch by Volter9 Ability to call controllers in their controller/model/param way

dispatch()

dispatch() 

Runs the callback for the given request