コード例 #1
0
 /**
  * Registration form factory.
  * @return \Nette\Application\UI\Form
  */
 protected function createComponentRegistrationForm()
 {
     CaptchaControl::register($this->getSession());
     $form = $this->factory->create();
     $form->onSuccess[] = function () {
         $this->redirect('Cabinet:cabinet', array('id' => $this->factory->getId()));
     };
     return $form;
 }
コード例 #2
0
ファイル: SignPresenter.php プロジェクト: hajek-raven/agenda
 protected function createComponentRegistrationForm()
 {
     $form = $this->registrationFactory->create($this->model);
     $form->onSuccess[] = array($this, 'registrationFormSucceeded');
     return $form;
 }