$route
$route : string
Matched route
Pop router HTTP match class
__construct() : \Pop\Router\Match\Http
Constructor
Instantiate the HTTP match object
match(array $routes) : boolean
Match the route to the controller class. Possible matches are:
/foo/:bar/:baz - Route with 2 required params /foo/:bar[/:baz] - Route with 1 required param and 1 optional param /foo/:bar/:baz - 1 required param, 1 required param that is a collection (array) /foo/:bar[/:baz] - 1 required param, 1 optional param that is a collection (array)
- OR -
/foo/* - Turns off strict matching and allows any route that starts with /foo/ to pass
array | $routes |
setBasePath() : \Pop\Router\Match\Http
Set the base path
setSegments() : \Pop\Router\Match\Http
Set the route segments