/** * Lists all models. */ public function actionIndex() { $dataProvider = new CActiveDataProvider('Users'); $permissionObj = new PermissionGroups(); $userTypes = CHtml::listData($permissionObj->getAllUserType(), 'id_group', 'name'); $this->render('index', array('dataProvider' => $dataProvider, 'userTypes' => $userTypes)); }