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

Route Match

Discussion in 'XenForo Development Discussions' started by Valhalla, Dec 3, 2014.

  1. Valhalla

    Valhalla Well-Known Member

    How could I detect a route match for 'forums' or 'members'? Or simply that a route matches that of a resource (whichever action)?
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    While in the controller you can use $this->getRouteMatch() to receive the RouteMatch object of the current request.
    Valhalla likes this.

Share This Page