[PHPTAL] How to use repeat as while

2010-07-29 Thread Klederson Bueno
I have this framework ( www.phpburn.com ) and while i do: $obj->fetch() it returns true or false until while ends... however repeat works more as a foreach and then i cant use this... how can i work with repeat working as a while ? Best Regards, Klederson Bueno www.phpburn.com ___

Re: [PHPTAL] How to use repeat as while

2010-07-29 Thread Kornel LesiƄski
On 29-07-2010 at 16:09:52 Klederson Bueno wrote: I have this framework ( www.phpburn.com ) and while i do: $obj->fetch() it returns true or false until while ends... however repeat works more as a foreach and then i cant use this... how can i work with repeat working as a while ? You can

Re: [PHPTAL] How to use repeat as while

2010-07-29 Thread Klederson Bueno
Hi, Tks for everything, now up and running: class BurnModelIterator implements Iterator { protected $obj, $current; public function __construct(PhpBURN_Core $obj) { $this->obj = &$obj; } function rewind() { $this->obj->_moveFirst(); } function current()