Answer the question
In order to leave comments, you need to log in
Module not connecting in Yii2?
Hello!
With the help of gii I generate the blog module, I try to connect it in the config and for some reason yii does not see it point-blank. I add code:
$config = [
...
'modules' => [
'blog' => [
'class' => 'app\modules\blog\Module',
],
],
...
];
Answer the question
In order to leave comments, you need to log in
Maybe you have a CNC configured and you need to knock on the host.ru/blog/default/index module ?
upd: Is there a directory with the module itself? Sometimes gii can't write files if there are no permissions.
Try
site.ru/index.php/blog/default/index
site.ru/blog/default/index
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question