The view template "view.html.php" for areabrick does not exist #7843
-
Hi! I'm trying to go through Pimcore Academy to get to know Pimcore and earn certificates. Unfortunately course videos are a little outdated, so I've had some issues with things not working like they are guided. I'm trying to make an Areablock and use it in a Document. I've created it succesfully, but when adding it to Document, I get an error saying that view template doesn't exist. Problem is that it tries to search for PHP template instead of Twig template, which I have. Is there a way to tell Pimcore to search for Twig templates instead of PHP templates, since they are going to be deprecated in the future? My Symfony version is 4.4.17 and Pimcore version is 6.8.5, if that helps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In your AppBundle's Controller method onKernelController: /**
* {@inheritDoc}
*/
public function onKernelController(FilterControllerEvent $event)
{
// set auto-rendering to twig
$this->setViewAutoRender($event->getRequest(), true, 'twig');
} |
Beta Was this translation helpful? Give feedback.
In your AppBundle's Controller method onKernelController: