HosipLan

Untitled

Aug 29th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. class MyPresenter
  2. {
  3.     private $idRespondent, $idObrazovka;
  4.  
  5.     public fuction actionDefault()
  6.     {  
  7.         $this->idRespondent = ...;
  8.         $this->idObrazovka = ...;
  9.     }
  10.  
  11.     public function renderDefault()
  12.     {
  13.         $this->template->idRespondent = $this->idRespondent;
  14.         $this->template->idObrazovka = $this->idObrazovka;
  15.     }
  16.  
  17.     protected function createComponentMyForm()
  18.     {
  19.         $form = new FormComposerComponent();
  20.         $form->prepareData($this->idRespondent, $this->idObrazovka);
  21.         return $form;
  22.     }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment