public function actionForwardTicket($id) { $this->form = new AppForm($this, 'fwdTicket'); $this->form->addHidden('tiket', $id); $this->form->addSelect('colleague', "Zvolte kolegu:", UsersModel::getMyColleagues(UsersModel::getDepartment($this->user->getIdentity()->id))); $this->form->addSubmit('forward', 'Předat'); $this->form->onSubmit[] = array($this, 'ForwardFormProcess'); $this->template->form = $this->form; }