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(); }
public function __construct(Nette\IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); $this->buildForm(); }