esempla / yii2-dynamic-menu
Dynamically configurable menu
1.1.0
2018-09-13 13:10 UTC
Requires
- php: >=7.1.0
- dmstr/yii2-adminlte-asset: ^2.1
- yii2mod/yii2-sweet-alert: *
- yiisoft/yii2: >=2.0.1
- yiisoft/yii2-composer: >=2.0.1
This package is auto-updated.
Last update: 2024-10-17 23:49:26 UTC
README
Installation
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require esempla/yii2-dynamic-menu "1.0.*"
or add
"esempla/yii2-dynamic-menu": "1.0.*"
to the `
require`
section of your composer.json
file.
Migrations
The extension has been created with database table. You should execute database migrations.(PostgreSQL ® recommended)
php yii migrate/up --migrationPath=vendor/esempla/yii2-dynamic-menu//src/migrations
Module
The extension has been created as a module. You should configure the module with a name of authManager
as shown below:
'modules' => [
...
'menu' => [
'class' => 'esempla\dynamicmenu\DynamicMenu',
],
...
],
Usage
Add to your layouts view
<?php echo \esempla\dynamicmenu\widgets\DynamicMenuWidget::widget(); ?>