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