dmsylvio / menu
Connect Yii 2 application to a Identity Provider for Single Sign On
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-04-28 05:07:06 UTC
README
composer require --prefer-dist dmsylvio/menu "*"
Add the following code to config file Yii2
'modules' => [ 'menu' => [ 'class' => 'vendor\dmsylvio\menu\Menu', ], ]
Configuration
1. Create database schema
Make sure that you have properly configured db
application component and run the following command:
$ php yii migrate/up --migrationPath=@vendor/dmsylvio/menu/migrations
2. Add the following code to view layout file Yii2
use vendor\dmsylvio\menu\Menu; // $arr (principal menus id) echo Menu::get_menu_tree($arr = [3,20,38,46,54]);
3. Getting started
/menu/creator