dmsylvio/menu

Connect Yii 2 application to a Identity Provider for Single Sign On

Maintainers

Details

github.com/dmsylvio/menu

Source

Issues

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2019-06-27 14:41 UTC

This package is auto-updated.

Last update: 2024-04-28 03:03:57 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