We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Volt: is partial exists

Is it possible to check if partial exists?

Something like

<div id="footer">
    {% if is_file("footer") %}
        {{ partial("footer") }}
    {% else %}
        Partial "footer" doesn't exists
    {% endif %}
</div>

Not with the built-in functions I think. However, if it's necessary for you, you can add a helper function, see https://docs.phalcon.io/en/latest/reference/volt.html#id3