yii2mod / yii2-rbac

RBAC Manager for Yii 2
MIT License
143 stars 58 forks source link

How to get a list of standard routes(not modules) #26

Closed serjlaw closed 6 years ago

serjlaw commented 6 years ago

Hey. Thank you very much for your extension. I got the routes of the installed modules in http://localhost/path/to/index.php?r=rbac/route. BUT how do I get routes for my action in my controllers (SiteController and other)?

ihorchepurnyi commented 6 years ago

Hi, this module doesn't provide any components for getting routes by specific controller name.

ihorchepurnyi commented 6 years ago

You can only view routes in the admin panel.

serjlaw commented 6 years ago

How do I control access to "user / index" or to the root of the site (http: // localhost /)? How do I add these routs?

ihorchepurnyi commented 6 years ago

I will try to describe the whole process later, maybe tonight.

serjlaw commented 6 years ago

Fine! Thank you. I will look forward to it.

serjlaw commented 6 years ago

I think I found what I was looking for. Is this "https://github.com/mdmsoft/yii2-admin/" your fork?

ihorchepurnyi commented 6 years ago

yep

serjlaw commented 6 years ago

Ok. I think the idea with the addition of a route in admin panel is good. Thanks for the help.