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