Category: twig

How to Customize 403 exception page?

Seriously Symfony documentation is really bad or outdated… I am trying to customize the Access Denied page. I followed this “tutorial” https://symfony.com/doc/current/controller/error_pages.html It says To override the 404 error template for HTML pages, create a new error404.html.twig template located at…

Twig Intl-extra: format_currency function not working with default locale on Symfony 5

Trying to use Twig Intl extra functions without passing arguments (expecting function get default locale). If I pass ‘EUR’ argument to format_currency filter, it works perfectly: {{ item.itemPrice|format_currency(‘EUR’) }} {# returns 10 € #} If I don’t pass any argument,…