Yii2-admin and Yii2-user compatibility

时间:2016-12-02 05:16:57

标签: php yii2 composer-php yii2-user

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

2 个答案:

答案 0 :(得分:2)

在我看来你的混音扩展。

  

尝试dektrium / yii2-rbac而不是mdmsoft / yii2-admin,

根据dektrium / yii2-rbac文档:

  

与Yii2用户集成 - 灵活的用户管理模块

  1. https://github.com/dektrium/yii2-rbac
  2. https://github.com/dektrium/yii2-user

答案 1 :(得分:0)

使用Yii2 2.0.26版和PHP 7.3.5,Sjaakp / yii2-pluto对我来说工作正常。 RBAC。 Yii2高级模板。

在GitHub上记录的一些网格图标小问题。

但是似乎不使用路由。我更喜欢使用can函数。