Пример #1
0
 public function showAction()
 {
     $videoService = new Service_Video();
     $tagService = new Service_Tag();
     $video = $videoService->getByPK($this->getRequest()->getParam('id'));
     if ($video->published != 1) {
         $this->_redirect('/');
     }
     $tags = $tagService->getForVideoId($this->getRequest()->getParam('id'));
     $this->view->tags = $tags;
     $this->view->video = $video;
 }