Skip to content
/ menu Public

Menu menager, dynamic Yii2 widget. Active menu items

Notifications You must be signed in to change notification settings

dmsylvio/menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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

About

Menu menager, dynamic Yii2 widget. Active menu items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages