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