Yeah, I thought about using LimitIterator [1] to avoid the creation of
temporary arrays but I wasn't sure about the performance of it (does it
always seek?) or if it works with Traversables.
A custom LimitIterator, without seeking, might of course work, or
perhaps it's enough to just modify
On 31-12-2009 at 04:44:34 romtek rom...@gmail.com wrote:
Thank you very much for this sample! It's much more elegant, easier to
understand and maintain than what I've come up with. Things like this had
better be published in a special section of documentation. And I hope
that
array_chunk()
Hi,
I've put together a very simple chunk iterator [1] which works with
arrays, traversables and iterators. There is also an example tales
modifier.
Perhaps it could even be added to the standard PHPTAL code base?
[1] http://gist.github.com/266759
regards,
/imv
On 12/31/09 11:02 AM,
On 29-12-2009 at 22:06:13 romtek rom...@gmail.com wrote:
I was looking for a more elegant way to generate grids using PHPTAL that
what I've been using and stumbled upon this post:
http://lists.motion-twin.com/pipermail/phptal/2007-February/000730.html.
In
it, Aaron McClimont has proposed
2009/12/30 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 29-12-2009 at 22:06:13 romtek rom...@gmail.com wrote:
I was looking for a more elegant way to generate grids using PHPTAL that
what I've been using and stumbled upon this post:
I was looking for a more elegant way to generate grids using PHPTAL that
what I've been using and stumbled upon this post:
http://lists.motion-twin.com/pipermail/phptal/2007-February/000730.html. In
it, Aaron McClimont has proposed adding a while loop (and also
dowhile)construct to PHPTAL. I think