Using a counter
| From: | Dorthe Luebbert | Date: | Thu, 28 Nov 2002 10:01:53 +0000 |
| Subject: | Using a counter | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6583@lists.php.net to get a copy of this message | ||
Hi,
what is the best way to use a counter in Smarty templates?
For example I print out a hash and want to print an image after each 4th
entry. Right now I work with cycle, but this does not work in cases I
don't know how many entries are printed out.
Dorthe