Re: [SMARTY] FAQ: simple loop
| From: | messju mohr | Date: | Mon, 01 Mar 2004 13:18:38 +0000 |
| Subject: | Re: [SMARTY] FAQ: simple loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11036@lists.php.net to get a copy of this message | ||
On Mon, Mar 01, 2004 at 12:56:17PM +0200, David Förster wrote:
> Hello,
>
> this is what the faq says about doing a simpe for-loop:
>
> ===
> {section name="myLoop" start=0 loop=5}
> index={$smarty.section.myLoop.index}
> {/section}
>
> This will output:
>
> index=0
> index=1
> index=2
> index=3
> index=4
> index=5
> ===
>
> When I try it, the latest element that is printed is index=4.
>
> Is this an error in the faq or in smarty?
this error is in the faq then.
> - david