コード例 #1
0
ファイル: VideoController.php プロジェクト: magicproof/test
 /**
  * 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);
 }
コード例 #2
0
ファイル: MainController.php プロジェクト: magicproof/test
 /**
  * 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);
 }