Hallo,
unter meinem Konto habe ich eine neue Seite hinzugefügt. Irgendwie scheint es Probleme mit dem Layout zu geben.
Am Style habe ich keine Änderungen vorgenommen.
Siehe Screenshot: Unbenannt — ImgBB
Hat jemand eine Idee?
Mein Plugin ist wie folgt aufgebaut:
Ausschnitt Test.php
…
public static function getSubscribedEvents() : array{
return[
'Enlight_Controller_Dispatcher_ControllerPath_Frontend_OrderControlling' => 'orderControlling',
];
}
...
public function orderControlling(){
$this->container->get('template')->addTemplateDir($this->getPath() . '/Resources/views/');
return $this->getPath() . '/Controllers/Frontend/OrderControlling.php';
}
Controllers/Frontend/OrderControlling.php
class Shopware_Controllers_Frontend_OrderControlling extends Enlight_Controller_Action {
public function indexAction(){
$this->View()->sUserLoggedIn = Shopware()->Modules()->Admin()->sCheckUser();
}
}
Resources/views/frontend/order_controlling/index.tpl
{extends file="parent:frontend/account/index.tpl"}
{* Breadcrumb *}
{block name="frontend_index_start"}
{$smarty.block.parent}
{s name="MyControllingTitle" assign="snippetMyControllingTitle"}Controlling{/s}
{$sBreadcrumb[] = ['name' => $snippetMyControllingTitle, 'link' => {url}]}
{/block}
{block name="frontend_index_content"}
{$smarty.block.parent}
{/block}
Resources/views/frontend/account/sidebar.tpl
{extends file="parent:frontend/account/sidebar.tpl"}
{$smarty.block.parent}
{* Link to the user orders *}
{block name="frontend_account_menu_link_orders"}
{$smarty.block.parent}
{s name="AccountLinkControlling"}{/s}
{/block}