D
D
Dmitry Sidorenko2015-08-13 21:10:53
Yii
Dmitry Sidorenko, 2015-08-13 21:10:53

How to customize Yii2 menu from yii2-cms-menu database?

I found the menu management plugin from the database - https://github.com/infoweb-internet-solutions/yii2...
Installed as described in the instructions: ran the
commands:
php composer.phar require infoweb-internet-solutions/yii2-cms-menu "*"
Set module config
'menu' => [
'class' => 'infoweb\menu\Module',
], Apply
migrations
yii migrate/up [email protected]/infoweb-internet-solutions/yii2-cms- menu/migrations
(missed the yii i18n/import @infoweb/menu/messages step)
After that, I accessed the /yiipath/menu page and
got a 404 error in response.
But if I go to vendor/infoweb-internet-solutions/yii2-cms-menu/Module.php
and put echo 1 there;
1 is displayed.
How to make it all work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Pasechnik, 2015-08-27
@jumper423

I'm sure it's not the plugin.
But in the link itself.
Are you sure you have a yiipath controller with a menu action?
Although it is better to show how your router is configured.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question