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