rownum with foreach?
| From: | Peter Billen | Date: | Thu, 22 Aug 2002 15:08:52 +0000 |
| Subject: | rownum with foreach? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5808@lists.php.net to get a copy of this message | ||
Hi,
Why doesnt this work?
{foreach from=$newsListData.comments item=comment_id name=comments}
.
> Comment #{$smarty.foreach.comments.rownum}
.
{/foreach}
Thanks,
Peter