Пример #1
0
 public function updateProfileFormSubmitted(Form $form)
 {
     $user = $this->getContext()->user->identity;
     $form->fillInEntity($user);
     $user->setBypassSecurityCheck(true);
     $user->save();
     $this->presenter->flashMessage('Vaše změny byly úspěšně uloženy.');
     $this->presenter->redirect('this');
 }