/** * Manages all models. */ public function actionAdmin() { if (Yii::app()->user->checkAccess($this->id . '.' . $this->action->id)) { $model = new Transfer('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Transfer'])) { $model->attributes = $_GET['Transfer']; } $this->render('admin', array('model' => $model)); } else { $this->accessDenied(); } }