T
T
TANK_IST2018-03-22 11:26:03
symfony
TANK_IST, 2018-03-22 11:26:03

Why twig error template doesn't see routes?

Created a template for displaying errors on the site

app/Resources/TwigBundle/views/Exception/error.html.twig

{% extends 'base.html.twig' %}

{% block main %}
    <div class="content">
        <div class="wrap">
            
        </div>
    </div>
{% endblock %}

But it doesn't work. There is always an error in the logs
Unable to generate a URL for the named route ...
Although there is no error on normal pages.
Why is that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question