Reply to Re: [SMARTY] Arrays how to

Your name:

Reply:


Posted by Baker_net on 10/18/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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация