B
B
balex7772019-10-24 10:21:32
Yii
balex777, 2019-10-24 10:21:32

How to get all roles and their children in yii2 RBAC Phpmanager?

How to get all roles and their children in yii2 RBAC Phpmanager?
I'm trying this way, $app->getAuthManager()->getRoles();
but it gives out only roles and dates of creation description, and type

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-10-24
@balex777

1. Have you ever worked with arrays? If yes, then get these Files Look at how these Files are arranged in you and get the lists from the array.
2. Why are you getting roles? RBAC implements access control, not a mapping of user roles. For a good role, do it separately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question