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 isset

Is it possible to check variable with isset? I'm setting variable success and check it '{% if isset success %}{% endif %}.. All i get is 'PhalconException: Syntax error, unexpected token IDENTIFIER'.. https://docs.phalcon.io/en/0.9.0/reference/volt.html#other-operators

Same here. :)



98.9k

It seems the docs are wrong, it must be:

{% if success is defined %}
    {{ "yes, it's defined" }}
{% endif %}


6.6k

Thanks. :)