1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Build a simple route like addon/get-pure-string-param

Discussion in 'XenForo Development Discussions' started by account8226, Jun 29, 2013.

  1. account8226

    account8226 Guest


    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.

    public function match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)
    $action $router->resolveActionWithStringParam($routePath$request'name');
    Any ideas ?

    Best regards.
  2. emc2

    emc2 Active Member

    I'm needing the same thing.. will keep looking:(
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    public function match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)
    Example in Addon_ControllerPublic_Addon you call actionAwesome so in URL should be {boardUrl}/{AddonPrefix}/Awesome
    You can view: XenForo_ControllerPublic_Misc for more information ;)
    emc2 likes this.

Share This Page