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