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