esempla/yii2-dynamic-menu
Composer 安装命令:
composer require esempla/yii2-dynamic-menu
包简介
Dynamically configurable menu
关键字:
README 文档
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-stabilitysettings 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(); ?>
To access Dynamic Menu go to /menu/dynamic-menu
统计信息
- 总下载量: 1.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-15