On 09-12-2009 at 23:22:11 romtek <rom...@gmail.com> wrote:
What is an approach to use if there's a need to iterate over the same
collection more than once in a template? Currently, it seems that a
collection's index/pointer is set at the end of the collection, and
another
iteration isn't possible.
As far as I'm aware PHPTAL iterates exactly like PHP's foreach() does, and
does reset collections when necessary (verified in
tests/TalRepeatTest.php/testReset).
Does your collection work with foreach()? If it does, can you send me the
code that doesn't work in PHPTAL?
--
regards, Kornel
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal