{if not isset}聪明的人 [英] {if not isset} Smarty
本文介绍了{if not isset}聪明的人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if (!isset($var)){
的smarty代码是什么?
what is the code for smarty for if (!isset($var)){
?
如果在smarty中未定义$ x时使用{if $ x eq'5'},则会给出错误function call 'get_template_vars' is unknown or deprecated.
.这就是我所相信的,只要我对试图知道此错误是从何而来就失去了希望!
if using {if $x eq '5'} when $x is not defined in smarty , it gives an error function call 'get_template_vars' is unknown or deprecated.
. this is what i believe so far as i lost hope in trying to know where did this error come from !
谢谢.
推荐答案
{if ! isset($var)}
body must be at least 30 characters. :)
{/if}
这篇关于{if not isset}聪明的人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文