Skip to content
Menu menager, dynamic Yii2 widget. Active menu items
Branch: master
Clone or download
Latest commit 9d95a81 Jan 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/js js minification Jan 22, 2017
controllers 2.1.3 Jan 22, 2017
icons minor fix Dec 25, 2018
migrations mirations this->table Jan 20, 2017
models js minificatui Jan 22, 2017
views form hide more Jan 23, 2017
LICENSE Initial commit Dec 13, 2015
Menu.php js minificatui Jan 22, 2017
MenuAsset.php js minificatui Jan 22, 2017
MenuWidget.php first licence Jan 8, 2017 Update Jan 22, 2019
composer.json form hide more Jan 23, 2017

Latest Stable Version Total Downloads Latest Unstable Version License

Bootstrap Menu Builder for Yii2




  • Creating links, drop menus, line (diver) in the navbar-left and/or navbar-right
  • Sorting, editing, and deleting using drag and drop
  • No jQuery for drag and drop (RubaXa/Sortable)
  • CRUD operations by jQuery Ajax)


composer require pceuropa/yii2-menu dev-master

Add the following code to config file Yii2

'modules' => [
	'menu' => [
            'class' => '\pceuropa\menu\Menu',


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/pceuropa/yii2-menu/migrations

2. Add the following code to view layout file Yii2

use pceuropa\menu\Menu;

NavBar::begin(['brandLabel' => 'Brand','brandUrl' => Url::home(),]);

echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-left'],
					'items' => Menu::NavbarLeft(1)  // argument is id of menu
echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'],
					'items' => Menu::NavbarRight(1)

3. Getting started


You can’t perform that action at this time.