[PHPTAL] tal:repeat Iterator problems

Laurent Bedubourg lbedubourg at motion-twin.com
Mon Oct 30 10:31:27 CET 2006


Moritz Bechler wrote:
> 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..
> 

Thank your Moritz,

I will integrate your patches by the end of the week.

Regards
Laurent
-- 
Laurent Bedubourg
lbedubourg at motion-twin.com
http://www.motion-twin.com



More information about the PHPTAL mailing list