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