[PHPTAL] tal:repeat Iterator problems

Moritz Bechler mbechler at eenterphace.org
Sun Oct 29 15:53:03 CET 2006


Hi there,

I found an issue concerning tal:repeat on Iterators. I noticed it when
trying to access repeat/item/key in a repeat block which iterates over a
Iterator object. So far array_keys has been used to determine the key
for the current item - but this does not work on Iterators.
When I wrote the patch (attached) to enable it I also noticed I had to
patch the code generation for the repeat block because otherwise I
wouldn't be able to get the correct Iterator when having an
IteratorAggregate object. So far..



Moritz Bechler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phptal.iterator.patch
Type: text/x-patch
Size: 1424 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20061029/ab78298e/phptal.iterator.bin


More information about the PHPTAL mailing list