RE: [SMARTY] rownum with foreach?
| From: | Peter Billen | Date: | Thu, 22 Aug 2002 18:20:58 +0000 |
| Subject: | RE: [SMARTY] rownum with foreach? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5812@lists.php.net to get a copy of this message | ||
Nope, I already tried that, didn't work.
Thanks for your input.
Peter
-----Original Message-----
From: Josh Johnson [mailto:mailing_lists@allusiveimage.com]
Sent: donderdag 22 augustus 2002 19:28
To: peter@clueless.be; 'Smarty General'
Subject: RE: [SMARTY] rownum with foreach?
Try changing {$smarty.foreach.comments.rownum} to {$comment_id.rownum}
-- Josh
-----Original Message-----
From: Peter Billen [mailto:peter@clueless.be]
Sent: Thursday, August 22, 2002 11:10 AM
To: 'Smarty General'
Subject: RE: [SMARTY] rownum with foreach?
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php