/** * @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; }
/** * 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; }