Menu module for you site
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist kriptograf/yii2-menu "*"
or add
"kriptograf/yii2-menu": "*"
to the require section of your composer.json
file.
Add the following code to config file Yii2
'modules' => [
'menu' => [
'class' => '\kriptograf\menu\Module',
],
]
Make sure that you have properly configured db
application component and run the following command:
$ php yii migrate/up --migrationPath=@vendor/kriptograf/yii2-menu/migrations
/menu/creator
Once the extension is installed, simply use it in your code by :
<?= \kriptograf\menu\widgets\AutoloadExample::widget(); ?>