Re: [SMARTY] multidimensional arrays and foreach iterations
| From: | Jens Lehmann | Date: | Sat, 27 Apr 2002 09:24:02 +0000 |
| Subject: | Re: [SMARTY] multidimensional arrays and foreach iterations | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3906@lists.php.net to get a copy of this message | ||
> >
> > There are two things I want to say:
> >
> > 1. Can I do something like $array[$var] (whereas $array is an array and
$var
> > is a variable and a key of $array) in a Smarty Template?
> >
> > {$array[$var]} and {$array.$var} didn't work: Smarty Plugin Error ...
> > unknown Tag $array.$var ...
>
> You can. In the next release.
>
> -Andrei
> * The future is not what it used to be. *
Thank you Andrei. I can get around needing this functionality by
mixing several arrays within the PHP-code, but nevertheless I
consider it an important (although not very trivial) step for Smarty.
Another short suggestion: It will possibly be a good thing to have
a small version of "overlib" within Smarty which takes less time to
load and has less functionality. I will contact the author of overlib
for this reason and hope this is in your mind too.
Jens