Re: [SMARTY] foreach iteration
| From: | messju mohr | Date: | Tue, 29 Jul 2003 14:02:03 +0000 |
| Subject: | Re: [SMARTY] foreach iteration | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9977@lists.php.net to get a copy of this message | ||
On Tue, Jul 29, 2003 at 03:52:30PM +0200, Martin Kloss wrote:
> At 15:39 29.07.2003 +0200, you wrote:
> >$smarty.foreach.name.iteration works indeed, just like .first, .last etc...
> >with foreach it's merely the same as with sections, but it has't all of the
> >variables, for obvious reasons ;)
> >see:
>
> >>http://smarty.php.net/manual/en/language.function.section.php
> >
> >it's just not documented for foreaches (moooooonte... meeeeessju ;))
>
> It does? It does not work for me (2.5.0):
>
> $smarty.foreach.language.iteration
>
> is empty!?
you have to supply a name to access these properties:
{foreach name=language from=$language...}
> Martin.
>
>
> Martin Kloss
> martin.kloss@triquart.de
> Technische Direktion
>
> ************************
> Triquart Neue Medien
> Bellealliancestr.17
> 20259 Hamburg
> Germany
> Tel.+49 (40)432 923-0
> Fax +49 (40)432 923-23
> www.triquart.de
> www.triquart-humor.de
> *************************