for / section
| From: | ThE PhP_KiD | Date: | Wed, 25 Jun 2003 21:33:32 +0000 |
| Subject: | for / section | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9776@lists.php.net to get a copy of this message | ||
Hi.
There is a way to generate a loop "N" times ?
something like this:
<ul>
{section name="rows" start="1" max="10"}
<li> this is the section {$rows}</li>
{/section}
</ul>
OUTPUT:
. this is the section 1
. this is the section 2
. this is the section 3
. this is the section 4
. this is the section 5
. this is the section 6
. this is the section 7
. this is the section 8
. this is the section 9
. this is the section 10
Thank you.
Mac