-
-
Save kkreft/c9bd07e1d4f8c78956f3 to your computer and use it in GitHub Desktop.
symfony flashbag bootstrap alert
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
{% 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