/** * Manages all models. */ public function actionAdmin() { // is current user has the required privilege ? if (!Yii::app()->user->checkAccess('kategoriRapat_admin')) { throw new CHttpException(403, 'You are not authorized to perform this action.'); } $model = new KategoriRapat('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['KategoriRapat'])) { $model->attributes = $_GET['KategoriRapat']; } $this->render('admin', array('model' => $model)); }