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

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

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

mohammedeisa/menu-bundle

Composer 安装命令:

composer require mohammedeisa/menu-bundle

包简介

Meisa Menu bundle

README 文档

README

About the bundle

MeisaMenuBundle is a bundle that helps the user to create multiple frontend menus in an easy way. Just three steps required after installing the bundle to get a cool menu in your website .

  • This bundle serves the the end user , UI developer and also the application developer .
  • You can easily configure and manage your frontend menus .
  • This bundle depends on SonataAdminBundle .

Bundle usage steps:

  1. Configure the routes (Developer role) .
  2. Setup the menu .
  3. Use the created menu in your theme .

Let's have fun !!!

Installation

  1. Install the bundle:

    1. Add the following line to your composer.json "mohammedeisa/menu_bundle": "2.0.*@dev"
    2. Update the composer .
    3. Enable the bundle in AppKernel.php by addming this line to $bundles "new Meisa\MenuBundle\MeisaMenuBundle()" .
  2. Configure the bundle:

    1. In config.yml, import this resource which contains the bundle configurations .
      - { resource: @MeisaMenuBundle/Resources/config/menu_definition.yml }
    2. Add - 'MeisaMenuBundle:Form:meisa_link_field.html.twig' to the twig form resources like the following.
    twig:
            debug:            "%kernel.debug%"
            strict_variables: "%kernel.debug%"
    
            form:
                resources:
                    - 'MeisaMenuBundle:Form:meisa_link_field.html.twig'
    

    This template is a helper in your application.I will explain it's benefits later in Meisa link helper.

  3. import the bundle routes by adding the following ti yor routing.yml

meisa_menu:
        resource: "@MeisaMenuBundle/Controller/"
        type:     annotation
        prefix:   /
  1. Add the admin sidebar menu items for the bundle in sonata_admin.yml {- meisa.menu.config , - meisa.menu.name} like the following
sonata_admin:
        dashboard:
            groups:
                sonata.admin.group.meisa:
                              label: Main
                              icon:  '<i class="fa fa-play-circle"></i>'
                              items:
                                  - meisa.menu.config
                                  - meisa.menu.name

That's it !!! How to Use Meisa Menu ?

  • the bundle registers two items in sonata sidebar (Menu config , Menu) At first you have to register all routes you need to use later in your frontend menus.
  1. Click on config and create new routes configurations.
    route configuration process.
    1. Select a route and it's type then save .
    2. If you select the type as "show" , you will be asked to configure each route parameter.
  2. Go to menu and create new menu you will see all your configurations published at the button.
  3. Select the needed links for your menu and save it.
  4. After saving you will see the menu name at the top .
  5. You can use this in any frontend template to publish your menu using show_menu filter
  • Example usage
    {{ "header_menu"|show_menu|raw }} Meisa link helper -- This is a helper form field of type "meisa_link". you can use it in any form in your sonata admin classes.
    Example usage:
    $formMapper ->add('link', 'meisa_link', array()); This link field is a text field with a button. when you click on this button , a modal will appear with your configured links. select the link you want and it will be set in the text field . this field type can be used in any bundle .

mohammedeisa/menu-bundle 适用场景与选型建议

mohammedeisa/menu-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「Menu generator」 「meisa」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mohammedeisa/menu-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mohammedeisa/menu-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 mohammedeisa/menu-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-03