/** * Sets up the view */ public function __construct() { $this->view = GeneralUtility::makeInstance(TemplateView::class); $context = new RenderingContext($this->view); $context->setControllerName('ErrorPage'); $context->setTemplatePaths(new TemplatePaths(['templateRootPaths' => [ExtensionManagementUtility::extPath('core', 'Resources/Private/Templates/ErrorPage/')]])); $this->view->setRenderingContext($context); }