Skip to content

Commit

Permalink
[symfony/twig-bundle] add flash messages to base.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Mar 29, 2022
1 parent 7d43cf1 commit 315874a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions symfony/twig-bundle/5.4/templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
{% endblock %}
</head>
<body>
{% for type, messages in app.flashes %}
{% for message in messages %}
<div class="flash-{{ type }}">
{{ message }}
</div>
{% endfor %}
{% endfor %}

{% block body %}{% endblock %}
</body>
</html>

0 comments on commit 315874a

Please sign in to comment.