Re: Sv: Re: New looping method proposal
| From: | Andrei Zmievski | Date: | Mon, 26 Nov 2001 17:49:00 +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-2045@lists.php.net to get a copy of this message | ||
On Wed, 21 Nov 2001, Jason Sweat wrote:
> My apologies if this suggestion is more annoying than useful, but could you
> perhaps solve this problem by turning the associative array into a linked
> list? It would required an extra pass over the array before you generate
> the output, but you could then have the next and previous keys stored on
> each array item. These could then be used to approximate the next/previous
> functions in the {section} style loop.
Might be an idea. Hey, should every {foreach..} be named? Because
otherwuse, how would you access its properties?
-Andrei
"I think it would be a good idea." -- Mahatma Gandhi,
when asked what he thought of Western civilization...