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