Re: Sv: Re: New looping method proposal
| From: | Monte Ohrt | Date: | Wed, 21 Nov 2001 20:14:22 +0000 |
| Subject: | Re: Sv: Re: New looping method proposal | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2005@lists.php.net to get a copy of this message | ||
I'm also wondering about using {loop ...} since loop is already an
attribute to {section ...}, it might just cause confusion.
Andrei Zmievski wrote:
>
> On Wed, 21 Nov 2001, Monte Ohrt wrote:
> > Although using "through" looks more like an english sentence, for some
> > reason it doesn't sit right using that as an attribute name. I can't
> > quite put my finger on it though. Maybe because "through" doesn't make
> > sense anywhere except right after {loop ...}
> >
> > {loop through=$var as=current index=foo}
> > {loop index=foo as=current through=$var}
> >
> > Since attributes can be in any order, I wouldn't put an importance on
> > making the function statement look like an english sentence. I'd stick
> > to something like "source", or something that makes sense even outside
> > of the context of the function call and order of attributes.
>
> Okay.
>
> -Andrei
> * On the keyboard of life, always keep one finger on the escape key. *
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/