Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyPresenter
- {
- private $idRespondent, $idObrazovka;
- public fuction actionDefault()
- {
- $this->idRespondent = ...;
- $this->idObrazovka = ...;
- }
- public function renderDefault()
- {
- $this->template->idRespondent = $this->idRespondent;
- $this->template->idObrazovka = $this->idObrazovka;
- }
- protected function createComponentMyForm()
- {
- $form = new FormComposerComponent();
- $form->prepareData($this->idRespondent, $this->idObrazovka);
- return $form;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment