Default route that looks for a string before the first slash, then dynamically loads a sub-rule and attempts to match against that.
Before starting the sub-rule, the route path is modified to strip off the prefix and the first slash.
Returns false if there is no prefix, if the prefix contains invalid characters (not a-z, 0-9, _), or if the sub-rule cannot be loaded. All other return values are dictated by the sub rule.
package | XenForo_Mvc |
---|
__construct($routeType)
match(string $routePath, \Zend_Controller_Request_Http $request, \XenForo_Router $router) : false | \XenForo_RouteMatch
See XenForo_Route_Interface for further details.
string
Routing path
\Zend_Controller_Request_Http
Request object
false
\XenForo_RouteMatch
_loadAndRunSubRule(string $routeClass, string $newRoutePath, \Zend_Controller_Request_Http $request, \XenForo_Router $router) : \XenForo_RouteMatch | false
string
Route class name
string
Route path to pass to match
Zend_Controller_Request_Http
XenForo_Router
\XenForo_RouteMatch
false
$_routeType : string
This is either "admin" or "public".