2017 © Pedro Peláez
 

yii2-extension yii2-menu-mongo

Yii2 module for menu creation adaptive for MongoDB.

image

kolyasiryk/yii2-menu-mongo

Yii2 module for menu creation adaptive for MongoDB.

  • Monday, October 30, 2017
  • by kolyasiryk
  • Repository
  • 0 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 27 % Grown

The README.md

Yii2 menu module

Yii2 module for menu creation., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist kolyasiryk/yii2-menu-mongo "*"

or add, (*4)

"kolyasiryk/yii2-menu-mongo": "*"

to the require section of your composer.json file., (*5)

Create controllers and include menu and menu-item traits. For example:, (*6)


class MenuController extends Controller { use MenuTrait; }

```php class MenuItemController extends Controller { use MenuItemTrait; }, (*7)


Usage ----- Minimal configuration: ```php <?= MenuWidget::widget([ 'menuName' => 'main_footer', 'menuWrapper' => '<ul class="bottom-nav">{items}</ul>', ]) ?>

Also you can define other settings:, (*8)

<?= MenuWidget::widget([
    'menuName' => 'main_header',
    'template' => function (MenuItem $current) {
        return Html::tag('li', Html::a($current->title, $current->url) . '{children}', [
            'class' => ($current->url == Url::to([''])) ? 'active' : '',
        ]);
    },
    'menuWrapper' => '<nav class="nav-holder"><ul id="nav">{items}</ul></nav>',
    'subMenuWrapper' => '<div class="drop"><ul>{items}</ul></div>',
]) ?>

The Versions

30/10 2017

dev-master

9999999-dev

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

30/10 2017

v1.1.3

1.1.3.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

30/10 2017

v1.1.1

1.1.1.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

30/10 2017

v1.1.2

1.1.2.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

30/10 2017

v1.1

1.1.0.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

27/10 2017

v1.0.1

1.0.1.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator

27/10 2017

v1.0

1.0.0.0

Yii2 module for menu creation adaptive for MongoDB.

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar kolyasiryk

yii2 mongo menu list creator