mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Very Bad documentation, and some errors #99

Closed carlos-andres closed 9 years ago

carlos-andres commented 9 years ago

Good day i try to install over a day and get a lot of errors,

for example it not works on a yii2 basic app, and when i try to configure in advance app give me a lot of errors, really is a good development but a poor in documentation.

img other

Yii Migration Tool (based on Yii v2.0.2-dev)

Total 1 new migration to be applied:
        m140506_102106_rbac_init

Apply the above migration? (yes|no) [no]:yes
*** applying m140506_102106_rbac_init
Exception 'yii\base\InvalidConfigException' with message 'You should configure "authManager" component to use database before executing this migration.'

in C:\[path]\vendor\yiisoft\yii2\rbac\migrations\m140506_102106_rbac_init.php:28
githubjeka commented 9 years ago

You run the console application! You should configurate console/config/main.php too.

p.s. best doc is http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#role-based-access-control-rbac

carlos-andres commented 9 years ago

Many thanks, it works

ghost commented 9 years ago

Hi @githubjeka I am using basic template but I didn't see console directory in root. whether should I create main.php file in the your path? Thank in advance

githubjeka commented 9 years ago

@bunleo Config of console here https://github.com/yiisoft/yii2/blob/master/apps/basic/config/console.php for basic template

ghost commented 9 years ago

@githubjeka Thank you very much