Skip to content

Instantly share code, notes, and snippets.

@hasantayyar
Created September 8, 2014 14:46
Show Gist options
  • Select an option

  • Save hasantayyar/c79ca26e946ff06a9cbe to your computer and use it in GitHub Desktop.

Select an option

Save hasantayyar/c79ca26e946ff06a9cbe to your computer and use it in GitHub Desktop.

Revisions

  1. hasantayyar created this gist Sep 8, 2014.
    8 changes: 8 additions & 0 deletions flashbag.html.twig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    {% 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 %}