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