return $router->getRouteMatch('XenForo_ControllerPublic_Member', $action, 'members');
but XenForo_Route_Prefix_Attachments doesn't have "attachments" in it.
return $router->getRouteMatch('XenForo_ControllerPublic_Attachment', $action);
And i found a guide but there is a small problem
this is directly from @Jaxel 's tutorial
in the example at admincp
and in 2nd part of the example
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
$action = $router->resolveActionWithStringParam($routePath, $request, 'string_id');
$action = $router->resolveActionWithIntegerParam($routePath, $request, 'action_id');
$action = $router->resolveActionAsPageNumber($action, $request);
return $router->getRouteMatch('EWRrio_ControllerPublic_Streams', $action, 'streams');
according to 1st part of the tutorial the "streams" is the major route, but in the 2nd part "streams" appear after the $action. why appear in two places?