Re: [PHPTAL] while loop in PHPTAL

2009-12-31 Thread Kornel Lesiński
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()

Re: [PHPTAL] while loop in PHPTAL

2009-12-31 Thread Iván Montes
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,