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