esempla/yii2-dynamic-menu

Dynamically configurable menu

1.1.0 2018-09-13 13:10 UTC

This package is auto-updated.

Last update: 2024-04-17 22:36:17 UTC


README

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