Hier ein Beispiel wie Du eine Smarty Variable global für alle Views bereitstellen kannst - falls Dir so etwas hilft?
pluginName = $pluginName;
$this->pluginDirectory = $pluginDirectory;
$this->templateManager = $templateManager;
}
public static function getSubscribedEvents()
{
return [
'Enlight_Controller_Action_PostDispatchSecure' => 'onFrontendPostDispatchSecure'
];
}
public function onFrontendPostDispatchSecure()
{
$this->assignSmartyVariables();
}
private function assignSmartyVariables()
{
$this->templateManager->assign('customPages', "Your Value");
}
}
In Deiner services.xml:
%customer_canvas.plugin_name%
%customer_canvas.plugin_dir%