Announcement

Collapse
No announcement yet.

How to create and add Rules to the db in DbManager rbac?

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to create and add Rules to the db in DbManager rbac?

    Hi,

    I want create and add a Rule in {{%auth_rule}} table of my db in yii2 app.

    I can't find any document or guide for do this operation in yii2. but i found addRule($rule) method in yii\rbac\DbManager and i think, i should use this method for do this but i don't know how?

    Whether i should create a class for any Rules in @app\rbac or this method just used for PhpManager?

  • #2
    Hello adamlevine
    This is the Comodo ONE (C1) forums. We cater to concerns about the C1 platform and the modules therein. We strongly suggest that you seek advise for your Yii 2 app concern on the following:

    The Definitive Guide to Yii 2.0

    Yii 2 GitHub

    Yii Framework site
    Rick C
    C1 - Technical Support
    COMODO | Creating Trust Online

    Comment

    Working...
    X