Beispiel #1
0
 public function __construct(\Nette\IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     if ($this->csrfProtection) {
         $this->addProtection("Prosím odešlete formulář znovu, vypršel bezpečnostní token.");
     }
     $this->addFields();
     $this->addSubmitButtons();
     $this->onSubmit[] = array($this, "handleSubmit");
     $this->init();
 }
Beispiel #2
0
	public function __construct(Nette\IComponentContainer $parent = NULL, $name = NULL) {
		parent::__construct($parent, $name);
		
		$this->buildForm();
	}