Re: [SMARTY] foreach iteration
| From: | Wom.bat | Date: | Tue, 29 Jul 2003 15:51:02 +0000 |
| Subject: | Re: [SMARTY] foreach iteration | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9982@lists.php.net to get a copy of this message | ||
On Tuesday, July 29, 2003 3:52 PM +0200, Martin Kloss wrote:
> It does? It does not work for me (2.5.0):
>
> $smarty.foreach.language.iteration
>
> is empty!?
>
> Martin.
{foreach from=$items item="item" name="items"}
{$smarty.foreach.items.iteration}
{/forach}
works. definitely. have used .last and .first quite often ;)
just provide the name attribute in the foreach loop
David