Re: Sv: Re: New looping method proposal
| From: | Ivo Jansch | Date: | Thu, 22 Nov 2001 07:57:13 +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-2032@lists.php.net to get a copy of this message | ||
Hi,
Andrei Zmievski wrote:
Anyway, regardless of the nomenclature, what does everyone think about supporting other attributes like 'show', 'max', 'start', and 'step'?With associative arrays, implementing a 'start' and 'step' might be difficult. But for normal arrays, it would be nice. What would 'show' accomplish? Hiding the loop doesn't make sense I think :)
Are they even necessary? And then also, is there a need for section property access, i.e. .last, .first, .index_prev, .index_next?Would be nice, but even nicer would be if I could do stuff like {$persons[$index-1]} Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl