View Single Post
Old 08-28-2011, 09:27 AM  
gleem
Confirmed User
 
gleem's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Sunny Land
Posts: 5,593
SMARTY HELP: how to print a number for -foreach-

If am doing a "foreach" and this is the foreach statement... how do I get smarty to out put a count number for each "foreach" it outputs?

here's the smarty foreach statement I'm using in my CARMA template:

PHP Code:
{foreach from=$carma_comments item=comments
Basically just want to show the comment number on a particular gallery and since it stores the comment ID as overall sitewide comment there's no comment number for that gallery in the array.
__________________




Contact me: \\// E: webmaster /at/ unprofessional.com
gleem is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote