HosipLan

Untitled

Nov 14th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. private $foo;
  2.  
  3. public function injectFoo(Foo $foo)
  4. {
  5.     $this->foo = $foo;
  6. }
  7.  
  8. protected function createComponentBlabla()
  9. {
  10.     $form = new UI\Form;
  11.     $form->addSelect('bla', 'alb')
  12.         ->setItems($this->foo->fetchPairs('id', 'name'))
  13.  
  14.     return $form;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment