コード例 #1
0
 /**
  * Lists all models.
  */
 public function actionIndex()
 {
     $model = new Video('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Video'])) {
         $model->attributes = $_GET['Video'];
     }
     $this->render('index', array('model' => $model));
 }
コード例 #2
0
 public function actionVideo()
 {
     $model = new Video('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Video'])) {
         $model->attributes = $_GET['Video'];
     }
     $this->render('video', compact('model'));
 }
コード例 #3
0
ファイル: VideoController.php プロジェクト: ngdvan/lntguitar
 public function actionAdmin()
 {
     $model = new Video('search');
     $model->unsetAttributes();
     if (isset($_GET['Video'])) {
         $model->setAttributes($_GET['Video']);
     }
     $this->render('admin', array('model' => $model));
 }
コード例 #4
0
ファイル: VideoController.php プロジェクト: liuwanwei/bdmedia
 /**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new Video('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['Video'])) {
         $model->attributes = $_GET['Video'];
     }
     $this->render('admin', array('model' => $model, 'version' => Video::model()->getGroupLastNum()));
 }