Shopware Developer Training Basic
1 - Controllerrouten und Authentifizierung / Controller routes & authentication
view->userId = $this->get('session')->get('sUserId');
}
}
2 - Subscriber-Methode und Registrierung eines Template-Ordners / Subscriber method and registering a template directory
'mySubscriber'
];
}
public function mySubscriber(ActionEventArgs $args) {
$args->getSubject()->View()->addTemplateDir( __DIR__. '/Resources/views/');
}
}