We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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 %}