public function indexAction() { $id = (int) $this->dispatcher->getParam('id', 'int'); $video = Video::findFirst($id); $videos = Video::find(array('order' => 'sortorder ASC')); $this->helper->title()->append($video->getTitle()); $this->view->video = $video; $this->view->videos = $videos; }
public function indexAction() { $this->view->entries = Video::find(array('order' => 'sortorder ASC')); $this->view->title = 'Список видео'; }