reference arrays in smarty
| From: | hiweb) | Date: | Tue, 29 May 2001 10:41:09 +0000 |
| Subject: | reference arrays in smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-836@lists.php.net to get a copy of this message | ||
Hi {$folks},
short question:
Is there a solution to reference associative arrays not
only the "static way": {$Contacts.phone.home}
I likely want to reference more this way ;)
$description_of_catid[28] = "Name of this Category";
$article =
array(
katid =>"12",
text => "foo",
...
);
{section name=list loop=$article}
katid = {$article[list].katid]}
description = {$description_of_katid.$article[list].katid]}
{/section}
Is this anyhow possible?
Your suggestions are *very* welcome,
Ingo - Smarty-User since 1.2.0 ;)