Download the PHP package quanzo/yii2-menu without Composer
On this page you can find all versions of the php package quanzo/yii2-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-menu
Menu - module for Yii2
The module is designed to organize several menus on the site.
Supported restriction on the display of each menu item
-
by route
- by access rights
You can show guests one thing and administrators another.
-----------------------------------------
Модуль предназначен для организации нескольких меню на сайт.
Поддерживается ограничение на показ каждого пункта меню
-
по route
- по правам доступа
Можно показать гостям одно, а администраторам другое.
-----------------------------------------
Install
Use composer
composer require "quanzo/yii2-menu"
or add in section require in composer.json
"quanzo/yii2-menu": "*"
Install db migration.
Configure
$config = [
'modules' => [
'menu' => [
'class' => 'x51\yii2\modules\menu\Module',
'as access' => [
'class' => \yii\filters\AccessControl::className(),
'rules' => [
[
'allow' => true,
'roles' => ['menu_manage'],
],
[
'allow' => false,
'roles' => ['?'],
],
],
],
],
],
];
How use
<div class="menu"><?=Menu::widget([
'items' => \x51\yii2\modules\menu\helpers\MenuHelper::getMenu('menu-name'),
'options' => [],
'activeCssClass' => 'current',
]);?></div>
Picture
All versions of yii2-menu with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
yiisoft/yii2 Version ~2.0.0
quanzo/yii2-auth Version *
quanzo/x51-functions Version *
yiisoft/yii2-jui Version ~2.0.0
yiisoft/yii2 Version ~2.0.0
quanzo/yii2-auth Version *
quanzo/x51-functions Version *
yiisoft/yii2-jui Version ~2.0.0
The package quanzo/yii2-menu contains the following files
Loading the files please wait ....