/** * Текст статьи * * @return void */ public function viewAction() { if (isset($this->_params['pageuid']) && ($PageInfo = $this->Page->getPageInfo($this->_params['pageuid']))) { $this->view->headTitle($PageInfo['pagename'], 'SET'); $this->view->assign('PageInfo', $PageInfo); $this->view->assign('PageList', $this->Page->getPageList(array('rowsperpage' => 0))); } else { return $this->_forward('notfound', 'error', null, array('controller' => 'error', 'action' => 'notfound')); } }
/** * Генерация идентификатора страницы * * @return void */ public function generateAction() { if ($this->_request->isXmlHttpRequest() && isset($this->_params['txt'])) { $this->_helper->json($this->Page->getUidGenerated($this->_params['txt'])); } else { die('error'); } }