public function metaAddFormSubmitted(AppForm $form) { $this->page->addMeta($form->values['key'], $form->values['value']); $this->presenter->flashMessage('Nastavení přidáno'); //$this->invalidateControl('editpage_metalist'); $form->setValues(array(), TRUE); $this->invalidateControl(); if (!$this->presenter->isAjax()) { $this->redirect('this#toc-meta'); } }
public function editFormSubmitted(AppForm $form) { $values = $form->values; TranslationsModel::replace($values); $this->template->translations = TranslationsModel::getAll(); $this->flashMessage('Překlad přidán/upraven'); $this->invalidateControl('translationstable'); $form->setValues(array(), TRUE); if (!$this->isAjax()) { $this->redirect('this'); } }
public function redirectEditFormSubmitted(AppForm $form) { $values = $form->values; RedirectModel::replace($values); $this->template->redirects = RedirectModel::getAll(); $this->flashMessage('Přesměrování přidáno/upraveno'); $this->invalidateControl('redirecttable'); $form->setValues(array(), TRUE); if (!$this->isAjax()) { $this->redirect('this'); } }