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

Route Prefix

Discussion in 'XenForo Development Discussions' started by LordsKing, Apr 22, 2014.

  1. LordsKing

    LordsKing Active Member

    Hello :)

    I would to create a valid route prefix to add a link to my forum like this : domaine.com/prefix_route

    Help me :)
  2. LordsKing

    LordsKing Active Member

  3. Jeremy P

    Jeremy P Well-Known Member

    With an addon..? Use a route prefix with a callback..? If what you're doing can be accomplished using the built in pages system or something I'd go that route instead.

    Screen Shot 2014-04-27 at 2.03.44 PM.png
  4. LordsKing

    LordsKing Active Member

    Yes for create an add-on ! With a callback :)
    But I don't know the PHP code
  5. Jeremy P

    Jeremy P Well-Known Member

    See library/XenForo/Route/Prefix/ for how XenForo uses them internally.. should help you figure out the PHP involved.
  6. LordsKing

    LordsKing Active Member

    I saw that :

    class XenForo_Route_Prefix_Account implements XenForo_Route_Interface
        * Match a specific route for an already matched prefix.
        * @see XenForo_Route_Interface::match()
    public function match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)

Share This Page