A
account8226
Guest
Hello,
I have always build complex URLs in my addons, like addon-name/action/name.id.
But I never tried to do something simple.
I would like, to have an addon with the following routes :
Actually, I was using the following code, but it's resolving the second param as an action, and not a simple get input.
Any ideas ?
Best regards.
I have always build complex URLs in my addons, like addon-name/action/name.id.
But I never tried to do something simple.
I would like, to have an addon with the following routes :
Code:
board-url/addon/string-param
Actually, I was using the following code, but it's resolving the second param as an action, and not a simple get input.
PHP:
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
$action = $router->resolveActionWithStringParam($routePath, $request, 'name');
return $router->getRouteMatch('A_ControllerPublic_Index', $action);
}
Any ideas ?
Best regards.