예제 #1
0
 /**
  * @param  string  $name
  * @return Nette\Forms\Form
  */
 protected function createComponentSignUpForm(string $name)
 {
     $form = $this->signUpForm->create();
     $form->onSuccess[] = function ($form, $data) {
         $this->postGet('Home:');
     };
     return $form;
 }
예제 #2
0
 /**
  * Sign-up form factory.
  * @return Nette\Application\UI\Form
  */
 protected function createComponentSignUpForm()
 {
     $form = $this->signUpFormFactory->create();
     $form->onFormSuccess[] = function ($form) {
         $form->getPresenter()->redirect(':Front:Sign:in');
     };
     return $form;
 }