Section loop
| From: | Roberto Berto | Date: | Thu, 08 Nov 2001 09:59:45 +0000 |
| Subject: | Section loop | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1855@lists.php.net to get a copy of this message | ||
Monte, I suggest you add a comment in the bult-in function section on the
manual.
"Loop can be an array or a int string". An exemple:
{assign var="total" value="100"}
{section name=test loop=$total}
Iteration {%test.index%} of {%test.total%}<br>
{/section}
Atenciosamente,
Roberto Berto'
----------------
roberto@berto.net
eConsultor
0(XX)51 32270599 -> Horario preferencial: 13h - 20h
0(XX)51 91169628 -> Em outros horarios