[solved] How to create a smarty variable what counts foreach
Posted: Fri Dec 17, 2010 10:56 am
I have code
Output is
Output what I want to
How?
Code: Select all
{foreach from=$children item='child'}
{$i++}
Picture {$i}
{/foreach}
Code: Select all
1
Picture 1
2
Picture 2
3
Picture 3
Code: Select all
Picture 1
Picture 2
Picture 3