$a[$b['foo']]['bar'] in templates?
| From: | Nagger | Date: | Thu, 13 Mar 2003 23:04:13 +0000 |
| Subject: | $a[$b['foo']]['bar'] in templates? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8629@lists.php.net to get a copy of this message | ||
hello...
how can i express the php code $a[$b['foo']]['bar'] in a template?
$a and $b are two assigned array. (they are no section variables)
i know i can use:
{assign var=b_foo value=$b.foo}
{$a.$b_foo.bar}
but is it possible as one single command?
i have tried:
{$a.{$b.foo}.bar}
{$a.$
b.foo.bar}
{$a.[$b.foo].bar}
{$a.[b.foo].bar} ...
bye...
Nagger