HosipLan

Untitled

Sep 14th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /**
  2.         * Formulář na přidání domény
  3.         *
  4.         */
  5.         protected function createComponentDomainAddForm()
  6.         {
  7.                 // formular
  8.                 $form = new \Nette\Application\UI\Form();    
  9.  
  10.                 $form->onSuccess[] = callback($this, 'domainAddFormSubmitted');
  11.         $form->onError[] = function ($form) {
  12.             $form->presenter->invalidateControl('domainAddForm'); // takto se musi jmenovat ten snippet
  13.         };
  14.                        
  15.                 return $form;
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment