Re: [SMARTY] using Smarty variables inside another variable like array

From: Date: Sun, 16 Feb 2003 19:20:00 +0000
Subject: Re: [SMARTY] using Smarty variables inside another variable like array
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7786@lists.php.net to get a copy of this message
yes, you just need to know the syntax. PHP: $foo['bar']['blah'] Smarty: $foo.bar.blah On Sat, 2003-02-15 at 06:10, Rob Schultz wrote: > i was wondering if its possible to use variables inside other variables > in Smarty templates.. something to the effect of > > {section name=id1 loop=$array1} > {section name=id2 loop=$array2[$array1[id1].id]} > > {/section} > {/section} > > I tried this but it didn't seem to work. I was wondering if there was a > way or a work around to get the same results.. I am basically trying to > go through an multi array with the first set being the id from a > different array that I loop through.. Thanks for any help you can > provide.. > > Robert Schultz -- Monte Ohrt <monte@ispi.net>

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