Skip to content

Commit f2a2e58

Browse files
committed
[symfony/twig-bundle] add flash messages to base.html.twig
1 parent 7d43cf1 commit f2a2e58

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

symfony/twig-bundle/5.4/templates/base.html.twig

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
{% endblock %}
1515
</head>
1616
<body>
17+
{% for type, messages in app.flashes %}
18+
{% for message in messages %}
19+
<div class="flash flash-{{ type }}">
20+
{{ message }}
21+
</div>
22+
{% endfor %}
23+
{% endfor %}
24+
1725
{% block body %}{% endblock %}
1826
</body>
1927
</html>

0 commit comments

Comments
 (0)