Re: [PHPTAL] How to use repeat as while

2010-07-30 Thread Kornel Lesiński
On 29-07-2010 at 20:47:05 Klederson Bueno wrote: Tks for everything, now up and running: class BurnModelIterator implements Iterator { protected $obj, $current; public function __construct(PhpBURN_Core $obj) { $this->obj = &$obj; You shouldn't use &$obj in PHP5. $this->obj =

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()

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

[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 ___