When trying to render a Twig Template within a Symfony 4 project I'm getting an error. I don't know which is the problem. This is the code generating the error:
return $this->render('templates/imagenes/index.html.twig');
And this is the error I'm getting:
LogicException You can not use the "render" method if the Templating Component or the Twig Bundle are not available.
Should I install Twig via composer apart Symfony itself?
Thanks @gogaz Installing twig did the trick.
composer require twig
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With