We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How Can I check if Flash Exists

How can i check in .volt files if flash message exists or not to show html.

Check the Session::has() method:


{% if flashSession.has() %}
{{ flashSession.output() }}
{% endif %}