public function actionIndex() { $model = new Videos('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Videos'])) { $model->attributes = $_GET['Videos']; } $this->render('index', array('model' => $model)); }