Exemplo n.º 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));
 }
 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'));
 }
Exemplo n.º 3
0
 public function actionAdmin()
 {
     $model = new Video('search');
     $model->unsetAttributes();
     if (isset($_GET['Video'])) {
         $model->setAttributes($_GET['Video']);
     }
     $this->render('admin', array('model' => $model));
 }
Exemplo n.º 4
0
 /**
  * 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()));
 }