Menu module

Menu module for you site

Installation

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

Configuration

1. Create database schema

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

2. Getting started for admin

/menu/creator

Usage

Once the extension is installed, simply use it in your code by :

<?= \kriptograf\menu\widgets\AutoloadExample::widget(); ?>