开发者

smarty syntax - isset

{if isset({$LANG.domainmoreinfo}){$LANG.domainmoreinfo}{/if}

This seems to be an incorrect syntax, can someone tell me what am I d开发者_如何学Coing wrong?

Can't we apply a isset on "$LANG.domainmoreinfo" (thing :s) perhaps? (yes, I'm that newbie)

Update: This is a string (so I believe), if that's the case, then, I can't use isset and I should use something that verifies is length?

Thanks a lot,

MEM


i think you don't need to use {} for variable in a condition,

{if isset($LANG.domainmoreinfo)}
   {$LANG.domainmoreinfo}
{/if}


Try this:

{if isset($LANG.domainmoreinfo)} {$LANG.domainmoreinfo} {/if}

I think there was an issue with your curly braces, not necessary within the isset() condition as @kinnou02 said because the statement is already being processed by smarty due to the curly brace right at the start of the if

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜