Skip to content
Snippets Groups Projects
Select Git revision
  • 4ffbf92c819ca10f2f4e72c18c7e7ab6b9878115
  • master default protected
  • 1.0.1
  • 1.1.0
  • 1.0.0
  • 0.0.1
6 results

yii2-dynamic-menu

user avatar
Socolicov Ion authored
4ffbf92c
History
Name Last commit Last update
src
.gitignore
README.md
composer.json

Dynamically configurable menu

Installation

The preferred way to install this extension is through composer.

Note: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json.

Either run

$ php composer.phar require esempla/yii2-dynamic-menu "1.0.*"

or add

"esempla/yii2-dynamic-menu": "1.0.*"

to the require section of your composer.json file.

Migrations

The extension has been created with database table. You should execute database migrations.(PostgreSQL ® recommended)

php yii migrate/up --migrationPath=vendor/esempla/yii2-dynamic-menu//src/migrations

Module

The extension has been created as a module. You should configure the module with a name of authManager as shown below:

'modules' => [
	...
	'menu' => [
        'class' => 'esempla\dynamicmenu\DynamicMenu',
    ],
	...
],

Usage

Add to your layouts view

<?php echo \esempla\dynamicmenu\widgets\DynamicMenuWidget::widget(); ?>

To access Dynamic Menu go to /menu/dynamic-menu