public function updateStaticPage(ArrayHash $values) { $page = new StaticPage(); $page->fromArray((array) $values); $page->setEditor($this->getUser()->getIdentity()); try { $this->staticPageService->updateStaticPage($page); } catch (Exceptions\DataErrorException $ex) { $this->handleDataSave($values->id, "this", $ex); } $this->redirect("default"); }