TRUE, 'view'=>TRUE, ); /** * Show a payments received */ public function action_list() { $id = Auth::instance()->get_user()->id; $ao = ORM::factory('account',$id); if (! $ao->loaded()) throw new Kohana_Exception('Account doesnt exist :account ?',array(':account'=>$id)); Block::add(array( 'title'=>sprintf('%s: %s - %s',_('Payments For'),$ao->accnum(),$ao->name(TRUE)), 'body'=>View::factory('payment/user/list') ->set('payments',$ao->payment->find_all()), )); } } ?>