Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageIt should be loop=6 because 5 repetitions starting from 0 is index=4 which is right. > On Mon, Mar 01, 2004 at 12:56:17PM +0200, David Förster wrote: > > this error is in the faq then. > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Randum Ian ian@randumian.co.uk CBDagency Web Consultant http://www.cbdagency.com DancePortalGlobal Webmaster http://www.danceportalglobal.com
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.