I am trying to use yii2-user and yii2-admin for my yii2 project.
If I use this configuration in my composer
"dektrium/yii2-user": "0.9.*@dev",
"mdmsoft/yii2-admin": "~2.0",
I get errors in admin module. They are simply not compatible. One error was that yii2 user does not have the status column in the user table. It used to work with this configuration.
"dektrium/yii2-user": "0.9.*@dev",
"mdmsoft/yii2-admin": "*",
However I found that from recently the composer updates for this setting results in a memory error. Even if it does succeed it takes a little less than forever to complete. Can someone tell me if there are stable compatible versions for both these packages? Can you also suggest other modules which we can use for user and rights configuration? thanks
答案 0 :(得分:2)
在我看来你的混音扩展。
尝试dektrium / yii2-rbac而不是mdmsoft / yii2-admin,
根据dektrium / yii2-rbac文档:
与Yii2用户集成 - 灵活的用户管理模块
答案 1 :(得分:0)
使用Yii2 2.0.26版和PHP 7.3.5,Sjaakp / yii2-pluto对我来说工作正常。 RBAC。 Yii2高级模板。
在GitHub上记录的一些网格图标小问题。
但是似乎不使用路由。我更喜欢使用can函数。