Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $form = new Form;
- if (array_key_exists('return', $this->params)) {
- $form->addHidden('return', $this->params);
- }
- $form->addText('wid', 'Nadpis:')
- ->setValue($this->webtextrep->wid)
- ->addRule(Form::FILLED, 'Vyplňte nadpis stránky!');
- $form->addTextArea('wtext', 'Text stránky:')
- ->setValue($this->webtextrep->wtext);
- $form->addSubmit('send', 'Upraveno!');
- $form->onSuccess[] = callback($this, 'editwebtextFormSubmitted');
- return $form;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement