0
我得到.tpl文件,其中有%%变量。.tpl文件和%%。 Twig引擎模板
例子:
%%GLOBAL_Error%%
这是树枝模板引擎?我想检查变量是不是空的,但我不能用常规的分支语法来做到这一点。
{% if GLOBAL_Error is defined %}
我该怎么做?
的树枝链接... http://twig.sensiolabs.org/doc/tags/if.html
我得到.tpl文件,其中有%%变量。.tpl文件和%%。 Twig引擎模板
例子:
%%GLOBAL_Error%%
这是树枝模板引擎?我想检查变量是不是空的,但我不能用常规的分支语法来做到这一点。
{% if GLOBAL_Error is defined %}
我该怎么做?
的树枝链接... http://twig.sensiolabs.org/doc/tags/if.html
这不是枝杈。 我想这是smarty
通过采取快看看文档,我假设%
是使用了逃避%
本身,所以%%GLOBAL_Error%%
将%GLOBAL_Error%
那是什么你的错误? – DonCallisto
没有错误,只是我输出为文本 – senzacionale