/** * страница новости детально * * @throws HTTP_Exception_404 */ public function action_news_detail() { $newsId = $this->request->param('id'); $newsDetail = Model_News::getNewsById($newsId); if (empty($newsDetail)) { throw new HTTP_Exception_404(); } $popupNewsEdit = Common::popupForm('Редактирование новости', 'news/edit', ['detail' => $newsDetail]); $this->_initWYSIWYG(); $this->_initDropZone(); $this->tpl->bind('detail', $newsDetail)->bind('popupNewsEdit', $popupNewsEdit); }