public function seoAction() { $pageId = $this->_request->getParam('id'); if (is_null($pageId)) { $this->_redirector->gotoSimpleAndExit('index'); } $page = $this->_modelMapper->find($pageId, new Pages_Model_Pages()); if ($this->getRequest()->isPost()) { if ($this->getRequest()->getParam('dataFormSeo')) { $dataFormSeo = $this->getRequest()->getParam('dataFormSeo'); $page->setOptions($dataFormSeo); $this->_modelMapper->save($page); } } $url = $page->getPath() != 'home' ? '/' . $page->getPath() : '/'; $this->_redirector->gotoUrlAndExit($url); }