public function showAction() { $tag = $this->getRequest()->getParam('tag'); $videoService = new Service_Video(); $this->view->videos = $videoService->getForTag($tag); $this->view->tag = $tag; }
public function indexAction() { // List of available categories $categoryService = new Service_Tagcategory(); $this->view->categories = $categoryService->fetchAll(); // Latest video w/ tags info $videoService = new Service_Video(); $this->view->latest = $videoService->getLatest(); }
public function submitAction() { if (!$this->getRequest()->isPost()) { $this->_forward('index', 'index'); } $videoService = new Service_Video(); try { $video = $videoService->addFromUrl($this->getRequest()->getParam('url')); } catch (Exception $e) { $video = null; $this->view->url = $this->getRequest()->getParam('url'); $this->view->error = $e->getMessage(); } $this->view->video = $video; }