Beispiel #1
0
 public function getRoles()
 {
     return AclRoles::find()->toArray();
 }
Beispiel #2
0
 public function getRolesAction()
 {
     if ($this->request->isPost()) {
         if ($this->request->isAjax()) {
             $roles = AclRoles::find()->toArray();
             return $this->sendAjax($roles);
         }
     }
 }