Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require fonclub/yii2-menu "*"
or add, (*3)
"fonclub/yii2-menu": "*"
to the require section of your composer.json
file., (*4)
Usage
Once the extension is installed, simply modify your application configuration as follows:, (*5)
'modules' => [
...
'menu' => [
'class' => 'fonclub\menu\Module',
],
],
Import the translations and use category 'fonclub/menu':, (*6)
yii i18n/import @fonclub/menu/messages
To use the module, execute yii migration, (*7)
yii migrate/up --migrationPath=@vendor/fonclub/yii2-menu/migrations