/** * Display video list at index action by path video */ public function indexAction() { $model = new Video(); $this->view = new Html(); $this->view->data = $model->getVideoList($limit = 5); }
/** * Display new video at path main/new-video */ public function newVideoAction() { $model = new Video(); $this->view = new Html(); $this->view->data = $model->getList($name = "magicproof", $limit = 1); }