Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] FAQ: simple loop
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

Report this thread to moderator Post Follow-up to this message
Old Post
Messju Mohr
03-19-04 06:28 PM


Re: [SMARTY] FAQ: simple loop
It 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

Report this thread to moderator Post Follow-up to this message
Old Post
Randum Ian
03-19-04 06:28 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:56 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.