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

Conditional Inheritance

Is there a way to implement "Conditional Inheritance" like in twig:

{% extends standalone ? "minimum.html" : "base.html" %}

When I tried to do this, I catch an error Syntax error, unexpected token IDENTIFIER...



39.3k
Accepted
answer

Conditional inheritance is not supported yet in Volt. You are more than welcome to add a NFR in our Github issue tracker.