Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public function indexAction()
 {
     $this->view->entries = Video::find(array('order' => 'sortorder ASC'));
     $this->view->title = 'Список видео';
 }