RE: [SMARTY] rownum with foreach?
| From: | Peter Billen | Date: | Thu, 22 Aug 2002 15:10:27 +0000 |
| Subject: | RE: [SMARTY] rownum with foreach? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5809@lists.php.net to get a copy of this message | ||
Little fuckup, sorry (read again below)
Peter
-----Original Message-----
From: Peter Billen [mailto:peter@clueless.be]
Sent: donderdag 22 augustus 2002 17:09
To: 'Smarty General'
Subject: [SMARTY] rownum with foreach?
Hi,
Why doesnt this work?
{foreach from=$newsListData.comments item=comment_id name=comments}
. . .
Comment #{$smarty.foreach.comments.rownum}
. . .
{/foreach}
Thanks,
Peter