array referencing stuff inside a template ...
| From: | Wolfram Kriesing | Date: | Mon, 26 Nov 2001 21:56:18 +0000 |
| Subject: | array referencing stuff inside a template ... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2047@lists.php.net to get a copy of this message | ||
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?
--
Wolfram