LPH
Well-known member
The code below pulls the template. Unfortunately the getEffectiveContainerParams is also pulling full instead of canonical, which leads to relative links.
Is there a way in the array for getEffectiveContainerParams to get the canonical links? Instead of $params using the $dependencies, should I attempt to build another method that pulls canonical links?
Is there a way in the array for getEffectiveContainerParams to get the canonical links? Instead of $params using the $dependencies, should I attempt to build another method that pulls canonical links?
PHP:
$dependencies = new XenForo_Dependencies_Public();
$dependencies->preLoadData();
$dependencies->preRenderView();
$params = $dependencies->getEffectiveContainerParams(array(),new Zend_Controller_Request_Http());
$template =$dependencies->createTemplateObject('navigation', $params);
echo $template->render();