我们知道,{% include header.volt %}是名字的参考文件header.volt. 如何在伏特模板中动态引用模板文件? 像这样: {% include variable %} 当变量相等时footer.volt,程序将引用带有名称的文件,footer.volt 当变量相等时index.volt,程序将引用名称为的文件index.volt...
{% include header.volt %}
header.volt
{% include variable %}
footer.volt
index.volt
谢谢!
include phalcon volt
include ×1
phalcon ×1
volt ×1