Hey @dNovoNiels,
I downloaded your example plugin and only got a single issue:
The controller was not yet registered in your DnovoEvents.php , so you have to add code like that:
public static function getSubscribedEvents()
{
return [
....
'Enlight_Controller_Dispatcher_ControllerPath_Frontend_EventDetail' => 'onGetFrontendDetailsController'
];
}
/**
* @return string
*/
public function onGetFrontendDetailsController()
{
$this->container->get('Template')->addTemplateDir($this->getPath() . '/Resources/views/');
return $this->getPath() . '/Controllers/Frontend/EventDetail.php';
}
After I added the new controller, I could successfully load the page myShop.de/EventDetail - your template was loaded properly then.
No idea why you’re facing the “Template could not be loaded” error, since your controller wasn’t registered yet.
Does this information help you?
Patrick