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

What about embedded blocks in Volt?

The embedded blocks are a very necessary tool in the development of the large web-projects. When the template structure involves multiple inheritance you can not use blocks only in the parent template.

We were hoping to get this feature in the second version of the Phalcon. But after update we again get the error "Embedding blocks into other blocks is not supported".

Whether to wait for the appearance of this feature in the future or it would be better to use another solution (Twig maybe)?



12.2k
edited Apr '15

Since version 2 you can try to write a propper solution for volt in Zephir or rewrite TWIG to zephir version )

Unfortunatelly Phalcon miss a lot of handy features, but now with Zephir I think this situation will be better.