Open xfg opened 9 years ago
Hey! You are right. I've got to update docs - there is missing part about attaching module and setting router. Are you common with Yii anyway? I believe I could miss few other things necessary for any module installation. Your feedback is very important, I think, I can write an article about module installing and insert a link to it in README files. I'll try to describe it shortly below.
INSTALLING MODULE.
'modules' => [
...
'rbac' => 'bariew\rbacModule\Module',
]
'components' => [
...
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'enableStrictParsing' => true,
'rules' => [
'<_a>' => 'site/<_a>',
'<_c>/<_a>'=>'<_c>/<_a>',
'<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>',
'/' => 'site/index',
],
],
],
That's all. Please notify me if I missed something!
I have made as written in a readme file, but this bullshit not working.
get -> index.php?r=rbac/auth-item/index -> result -> Not Found (#404)