Open twovectors opened 7 years ago
Hi @twovectors, I've examined your pr. When I have some time I' ll merge it.
FYI I' m currently using
{% if not flash() is empty %}
{# render all messages #}
{% endif %}
{% if not flash('danger') is empty %}
{# render errors #}
{% endif %}
Hey @kanellov , could you merge this? It's been long over 2 years since this PR was opened.
Adds a has_message('key') twig function that exposes the base Flash hasMessage() function to test if a key has messages. Useful for selectively displaying template elements, like error divs.