{% if app.session is not null and app.session.started %} {% for type in ['success', 'error', 'info', 'warning'] %} {% for flash in app.session.flashbag.get(type) %} {% if 'error' == type %} {% set result = 'negative' %} {% set icon = 'remove' %} {% endif %} {% if 'info' == type %} {% set result = 'info' %} {% set icon = 'info' %} {% endif %}
{% endfor %} {% endfor %} {% endif %}