/** * Manages all models. */ public function actionAdmin() { $model = new Modification('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Modification_markname']) && !isset($_GET['Modification']['model_id'])) { $this->render('admin', array('model' => $model, 'markId' => $_GET['Modification_markname'])); Yii::app()->end(); } if (isset($_GET['Modification'])) { $model->attributes = $_GET['Modification']; } $this->render('admin', array('model' => $model)); }