Created
September 8, 2014 14:46
-
-
Save hasantayyar/c79ca26e946ff06a9cbe to your computer and use it in GitHub Desktop.
symfony flashbag bootstrap alert
This file contains hidden or 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
{% for type, messages in app.session.flashBag.all %} | |
{% for message in messages %} | |
{%if type == 'error'%} {% set type = 'danger' %} {%endif%} | |
<div class="alert alert-{{ type }}"> | |
{{ message|raw }} | |
</div> | |
{% endfor %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment