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