Answer the question
In order to leave comments, you need to log in
Custom 404 page?
In app/Resources/TwigBundle/views/Exception/ created a file error404.html.twig with the following content
{% extends 'base.html.twig' %}
{% block body %}
<h1>Page not found</h1>
{% endblock %}
{% block body %}
<h1>Page not found</h1>
{% endblock %}
Answer the question
In order to leave comments, you need to log in
Read the documentation about
parent()
https://twig.symfony.com/doc/3.x/functions/parent.html
try adding it to the block
You can also add additional blocks in the base.html.twig template in the body block, which will reassign
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question