Created
November 1, 2014 21:33
-
-
Save geerteltink/05fbf89f25111618488d to your computer and use it in GitHub Desktop.
Symfony 2.4 flash messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="list-unstyled container js-notifications"> | |
{% if app.session and app.session.flashbag %} | |
{% for label, flashes in app.session.flashbag.all %} | |
{% for flash in flashes %} | |
<li class="alert alert-{{ label }} alert-dismissable"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
{{ flash }} | |
</li> | |
{% endfor %} | |
{% endfor %} | |
{% endif %} | |
{% block notifications %}{% endblock notifications %} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment