コード例 #1
0
ファイル: Acl.php プロジェクト: skullab/area51
 public function getRoles()
 {
     return AclRoles::find()->toArray();
 }
コード例 #2
0
ファイル: UsersController.php プロジェクト: skullab/area51
 public function getRolesAction()
 {
     if ($this->request->isPost()) {
         if ($this->request->isAjax()) {
             $roles = AclRoles::find()->toArray();
             return $this->sendAjax($roles);
         }
     }
 }