Re: [SMARTY] complex array inside section

From: Date: Thu, 31 Jul 2003 21:29:58 +0000
Subject: Re: [SMARTY] complex array inside section
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10004@lists.php.net to get a copy of this message
On Thu, Jul 31, 2003 at 11:21:09PM +0200, Gerard L Petersen wrote: > Hi > > Im trying to loop through a section > > my code looks something like this > > group is an array > > {section name=sec_name loop=$big} > $small[$big[sec_name].var] > {/section} > > > it gives me this error unidentified token '[$contact[sec_name].var]' you have to use an itermediate var to get the operator-precedence you want: {section name=sec_name loop=$big} {assign var=i value=$big[sec_name].var} {$small.$i} {/section} > any ideas > > Thanks > > -Gerard

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