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