add() add( $route, $is_default = False, $add_it = True) Add a route Parameters $route $is_default $add_it
setDefault() setDefault( $route) Set a default controller. This will not be checked in the normal route test, and will only be used if no other routes matched. Parameters $route
redirect() redirect( $from_uri, $to_uri, $opts = array()) Add a redirect rule. Parameters $from_uri $to_uri $opts
display() display( $path, $view, $is_default = False) Display a view without an underlying controller. Parameters $path $view $is_default
match() match( $uri = Null, $method = Null) See if we can match a route against a URI and method. Returns a RouteContext object. If there is no default controller specified, and no route matches, it will return Null. Parameters $uri $method
route() route( $uri = Null, $method = Null) The primary frontend function for starting the routing. Parameters $uri $method
build() build( $routeName, $params = array(), $opts = array()) Build a URI for a named route. Parameters $routeName $params $opts
go() go( $routeName, $params = array(), $ropts = array(), $bopts = array()) Redirect the browser to a known route, with the appropriate parameters. Parameters $routeName $params $ropts $bopts