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