RE: [SMARTY] rownum with foreach?

From: Date: Fri, 23 Aug 2002 10:19:23 +0000
Subject: RE: [SMARTY] rownum with foreach?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5814@lists.php.net to get a copy of this message
array $newsListData: -> ['news_id'] (x) -> ['news_topic'] -> ... -> ['comments'] (x) -> ['comment_id'] (x) -> ['comment_text'] -> ... Not good? Thanks, Peter -----Original Message----- From: Josh Johnson [mailto:mailing_lists@allusiveimage.com] Sent: donderdag 22 augustus 2002 21:49 To: peter@clueless.be Subject: RE: [SMARTY] rownum with foreach? How is your array structured? -- Josh -----Original Message----- From: Peter Billen [mailto:peter@clueless.be] Sent: Thursday, August 22, 2002 2:21 PM To: 'Smarty General' Subject: RE: [SMARTY] rownum with foreach? 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 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#5814) next »