From 315874aaf4c0c5607026f36b9fc5aa05850770c3 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Tue, 29 Mar 2022 08:49:04 -0400 Subject: [PATCH] [symfony/twig-bundle] add flash messages to base.html.twig --- symfony/twig-bundle/5.4/templates/base.html.twig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/symfony/twig-bundle/5.4/templates/base.html.twig b/symfony/twig-bundle/5.4/templates/base.html.twig index d4f83f7f8..244d6382f 100644 --- a/symfony/twig-bundle/5.4/templates/base.html.twig +++ b/symfony/twig-bundle/5.4/templates/base.html.twig @@ -14,6 +14,14 @@ {% endblock %} + {% for type, messages in app.flashes %} + {% for message in messages %} +
+ {{ message }} +
+ {% endfor %} + {% endfor %} + {% block body %}{% endblock %}