host33/yii2-multilevel-horizontal-menu
Composer 安装命令:
composer require host33/yii2-multilevel-horizontal-menu
包简介
This extension consists of a multilevel horizontal menu.
README 文档
README
This extension consists of a multilevel horizontal menu. It is based on the SMenu extension. The CSS code has been taken from this page: http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2
Demo
https://yiidemos.oligalma.com/multilevelhorizontalmenu
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require host33/yii2-multilevel-horizontal-menu "dev-master"
or add
"host33/yii2-multilevel-horizontal-menu": "dev-master"
to the require section of your composer.json file.
Usage
First of all, you have to add this piece of code where you want your menu to appear:
use host33\multilevelhorizontalmenu\MultilevelHorizontalMenu; echo MultilevelHorizontalMenu::widget( array( "menu"=>array( array("url"=>array(), "label"=>"Products", array("url"=>array( "route"=>"/product/create"), "label"=>"Create product",), array("url"=>array( "route"=>"/product/list"), "label"=>"Product List",), array("url"=>array(), "label"=>"View Products", array("url"=>array( "route"=>"/product/show", "params"=>array("id"=>3), "htmlOptions"=>array("title"=>"title")), "label"=>"Product 3"), array("url"=>array(), "label"=>"Product 4", array("url"=>array( "route"=>"/product/show", "params"=>array("id"=>5)), "label"=>"Product 5")))), array("url"=>array( "route"=>"/event/create"), "label"=>"Sales"), array("url"=>array( "route"=>"/event/create"), "label"=>"Extensions", "visible"=>false), array("url"=>array(), "label"=>"Documentation", array("url"=>array( "link"=>"http://www.yiiframework.com", "htmlOptions"=>array("target"=>"_BLANK")), "label"=>"Yii Framework"), array("url"=>array(), "label"=>"Clothes", array("url"=>array( "route"=>"/product/men", "params"=>array("id"=>3), "htmlOptions"=>array("title"=>"title")), "label"=>"Men"), array("url"=>array(), "label"=>"Women", array("url"=>array( "route"=>"/product/scarves", "params"=>array("id"=>5)), "label"=>"Scarves"))), array("url"=>array( "route"=>"site/menuDoc"), "label"=>"Disabled Link", "disabled"=>true), ) ), ) );
Next, you have to add this other piece of code where you want the combobox menu to appear when the user shrink the window:
<span id="insertHere"></span>
License
yii2-multilevel-horizontal-menu is released under the GPLv3 License. See the bundled LICENSE.md for details.
host33/yii2-multilevel-horizontal-menu 适用场景与选型建议
host33/yii2-multilevel-horizontal-menu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.64k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2015 年 03 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「menu」 「extension」 「widget」 「yii2」 「horizontal menu」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 host33/yii2-multilevel-horizontal-menu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 host33/yii2-multilevel-horizontal-menu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 host33/yii2-multilevel-horizontal-menu 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
A Symfony extension to get active class base on current bundle/controller/action
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
统计信息
- 总下载量: 1.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2015-03-31