Re: [SMARTY-GENERAL] If statements

From: Date: Mon, 01 Apr 2002 18:36:51 +0000
Subject: Re: [SMARTY-GENERAL] If statements
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3420@lists.php.net to get a copy of this message
On Mon, 01 Apr 2002, Brad Atkins wrote: > Hey Monte, > > We do the following > > $tplassigns[] = array( > 'ID' => $RESULT24->fields['SECTID24'], > 'CATEGORY_ID' => "", > 'NAME' => $NAME, > 'IS_SECTION' => "Y" ); > > $tpl->assign( 'SECTIONS', $tplassigns ); > > So how would I reference that, IS_SECTION? > > {if $SECTION.IS_SECTION eq "Y"} {section name=foo loop=$SECTIONS} {if $SECTIONS[foo].IS_SECTION eq "Y"} {/if} {/section} -Andrei "You choose to do the bad things in your life; the good ones come and drag you along with them." - Michael Marshall Smith

« previous php.smarty.general (#3420) next »