예제 #1
0
파일: Acl.php 프로젝트: skullab/area51
 public function getRoles()
 {
     return AclRoles::find()->toArray();
 }
예제 #2
0
 public function getRolesAction()
 {
     if ($this->request->isPost()) {
         if ($this->request->isAjax()) {
             $roles = AclRoles::find()->toArray();
             return $this->sendAjax($roles);
         }
     }
 }