XenForo community

Onimua
Onimua
There's a few add-on tutorials around, specifically the ones by Lawrence. You need to use xen:link with your own router directories so XenForo knows what it's looking for.

You also need to pass the information from the code to fill in the $params variable so then it can be used by the template, and more importantly the link can be created for your action.
DroidHost
DroidHost
I did all of it and the params are filled I can see that from the template being filled .....
but when I use xen: link .... nothings coming
Onimua
Onimua
Did you set up your route prefixes?
DroidHost
DroidHost
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
return $router->getRouteMatch('DroidHost_Bannar_ControllerPublic_Index', $routePath, 'myaddon');
}
Onimua
Onimua
You need to also define link function.
Top Bottom