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

route

  1. CMTV

    XF 2.0 Adding a parameter to route

    Hello! In post_macros template I am adding an action-link (near like link): <a href="{{ link('posts/best', $post, {'thread_id': $thread.thread_id}) }}" class="actionBar-action actionBar-action--mq.is-selected">Best answer</a> Next I extend XF\Pub\Controller\Post.php class and adding...
  2. SNK

    How to create a "double intParams" in a route ?

    Hello, Firstly, I'm French and sorry for my bad english. I want to create a route with two integer, exemple : https://mysite.com/module/first_id/users/second_id/action But I can't do this, for the moment I have : https://mysite.com/module/users/first_id/second_id/action My xenForo's Route ...
  3. Scharesoft

    How to get the current route in actionIndex of ControllerPublic?

    I'm creating an addon for our forum and there I need the current route. I created a new area with the url "tes". There will be sub areas like tes/skyrim or tes/oblivion. Now I need this route (skyrim or oblivion) in my actionIndex of the ControllerPublic php file. Route/Prefix file: class...