D
D
des1roer2015-07-28 11:48:41
Yii
des1roer, 2015-07-28 11:48:41

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
5efe8202604646a68bca3047d77b1fc8.png

'modules' => [
        'main' => [
            'class' => 'vendor\my\main',
        ],

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
des1roer, 2015-07-30
@des1roer

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>'

G
Gregory, 2015-07-28
@sapgv

registered namespace?
show error

M
Mirocow, 2015-07-29
@mirocow

did you add it to the composer?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question