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