gleem |
08-28-2011 09:27 AM |
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.
|