kematjaya/menu-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kematjaya/menu-bundle

最新稳定版本:7.0.2

Composer 安装命令:

composer require kematjaya/menu-bundle

包简介

menu management

README 文档

README

  • installation
composer require kematjaya/menu-bundle
  • configure to config/bundles.php
...
Kematjaya\MenuBundle\MenuBundle::class => ['all' => true]
...
  • add to config/routes/annotations.yaml
...
kmj_menu:
    resource: '@MenuBundle/Resources/config/router.xml'
...
  • create file resources/menu.yaml for setting list of menu and insert menu like this:
dashboard:                        # Path name / route name
    label: dashboard              # label
    icon: ft-home                 # css icon
    group: null                   # group menu 
    
kmj_menu_access_control_index:    # Path name / route name
    label: access_control         # label
    icon: ft-aperture             # css icon
    group: administrator          # css icon
    role:                         # role for allowed to access this menu
        - ROLE_SUPER_USER
        - ROLE_ADMINISTRATOR
  • view menu in twig, add this to your twig template
{{ kmj_menu() }}
  • url:
access control: kmj_menu_access_control_index
setting access control: kmj_menu_access_control_show

统计信息

  • 总下载量: 1.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-26