Posted by Baker_net on 09/26/72 11:15
> I try to view if a var declared as array contain value or came
> empty in a .tpl file. I try this:
> if ($imgArr neq ""){
> // actions
> }else{
> // others actions
> }
> But this generate a error. Some help with this ?
Hi!
Try this (in *.tpl file):
{if $imArr neq ""}
{* actions *}
{else}
{* others actions *}
{/if}
where {* ... *} is a Smarty comments - You must to write a html
code or
smarty actions in that places.
Best regards,
baker
Navigation:
[Reply to this message]
|