Okay.
Das hier ist die Ornder-Struktur: http://prntscr.com/h265ru
Auftragsprogrammierung.php
Bootstrap.php:
class Shopware_Plugins_Frontend_IndividualProgramming_Bootstrap
extends Shopware_Components_Plugin_Bootstrap {
public function getInfo()
{
return [
'version' => 1.0,
'author' => 'xy',
'label' => 'IndividualProgramming'
];
}
public function install()
{
$this->subscribeEvent(
'Enlight_Controller_Action_PreDispatch_Frontend_Account',
'onActionPreDispatchFrontendAccount'
);
$this->registerController('Frontend', 'Auftragsprogrammierung');
return true;
}
public function onActionPreDispatchFrontendAccount(Enlight_Event_EventArgs $args)
{
/** @var \Enlight_Controller_Action $controller */
$controller = $args->getSubject();
$view = $controller->View();
if ($view->hasTemplate()) {
$view->addTemplateDir($this->Path() . 'Views/');
$view->extendsTemplate('frontend/IndividualProgramming/menuitem.tpl');
}
}
}
Resultat: http://prntscr.com/h26821
Eine Antwort wäre super!
~ byDunkman