public function actionShowStaticPage($id) { $page = null; try { if (is_numeric($id)) { $page = $this->staticPageService->getStaticPage($id); } else { $page = $this->staticPageService->getStaticPageAbbr($id); } } catch (Exceptions\DataErrorException $ex) { $this->handleDataLoad($id, "default", $ex); } $this->setEntity($page); $this->template->page = $page; }