https://github.com/kriptograf/yii2-menu
Extension manage menu for Yii2
https://github.com/kriptograf/yii2-menu
bootstrap3 menu widget yii2 yii2-extension
Last synced: about 1 year ago
JSON representation
Extension manage menu for Yii2
- Host: GitHub
- URL: https://github.com/kriptograf/yii2-menu
- Owner: kriptograf
- Created: 2017-02-07T13:16:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T14:03:09.000Z (over 3 years ago)
- Last Synced: 2025-03-30T05:11:31.892Z (about 1 year ago)
- Topics: bootstrap3, menu, widget, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 44.9 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Menu module
===========
Menu module for you site
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require --prefer-dist kriptograf/yii2-menu "*"
```
or add
```
"kriptograf/yii2-menu": "*"
```
to the require section of your `composer.json` file.
Add the following code to config file Yii2
```php
'modules' => [
'menu' => [
'class' => '\kriptograf\menu\Module',
],
]
```
Add the following code to config file Yii2 for settings module kartik-v gridview
```php
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module'
// enter optional module parameters below - only if you need to
// use your own export download action or custom translation
// message source
// 'downloadAction' => 'gridview/export/download',
'i18n' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@kvgrid/messages',
'forceTranslation' => true
]
]
];
```
## Configuration
### 1. Create database schema
Make sure that you have properly configured `db` application component and run the following command:
```bash
$ php yii migrate/up --migrationPath=@vendor/kriptograf/yii2-menu/migrations
```
### 2. Getting started for admin
```php
/menu/creator
```
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
'placement_you_code'])?>
```