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