Answer the question
In order to leave comments, you need to log in
Module in yii 2?
I'm trying to make my own module in yii 2. I put it in vendor. I also generate a model and crud there. but the site says there is no such page. what could be the trick
'modules' => [
'main' => [
'class' => 'vendor\my\main',
],
Answer the question
In order to leave comments, you need to log in
in general, the module had to be added not to the vendor, but to the frontend. the cant was in the yiiframework.ru/forum/viewtopic.php?f=19&t=31102
urlmanager
For example, to make the module available in the frontend, you need to add a new rule in the settings.
Example:'<_m>/<_c>/<_a>' => '<_m>/<_c>/<_a>'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question