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