Re: array referencing stuff inside a template ...

From: Date: Mon, 26 Nov 2001 22:39:06 +0000
Subject: Re: array referencing stuff inside a template ...
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2048@lists.php.net to get a copy of this message
On Mon, 26 Nov 2001, Wolfram Kriesing wrote: > for me the following doesnt work > > {if $folderRights[$folders[folders].id].write}checked{/if} > > where folderRights and folders are filled by teh assign-method > they are arrays > > and the if of folders shall be used as the index to access the right > element in folderRights, from which i then need the value of the > index "write" > > in php it would be > > if ($folderRights [ $folders['id'] ] ['write'] ) > { > print ("checked"); > } > > > did i make myself clear? :-/ > > is that possible or not? Not yet. -Andrei "Everything has its wonders, even darkness and silence, and I learn, whatever state I may be in, therein to be content." - Helen Keller

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