mrssoft / yii2-menu
Yii2 menu widget
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-18 19:19:36 UTC
README
Yii2 menu widget
Install
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mrssoft/yii2-menu "dev-master"
or add
"mrssoft/yii2-menu": "dev-master"
to the require section of your composer.json
Usage
echo Menu::widget([ 'options' => ['class' => 'my-menu'] 'items' => [ ['label' => 'Login', 'url' => '/user/login'], [ 'label' => 'Logout', 'url' => ['user/logout'], 'data-method' => 'post' ], ] ]);