2017 © Pedro Peláez
 

yii2-extension jakharbek-menu

Меню

image

jakharbek/jakharbek-menu

Меню

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

Menu

Menu yii2, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist jakharbek/jakharbek-menu "*"

or add, (*4)

"jakharbek/jakharbek-menu": "*"

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

Usage

Once the extension is installed, simply use it in your code by :, (*6)

You must migrate the database from the / migration folder, (*7)

Once the extension is installed, you mast configurate extension; To do this, you need to open the src/bootstrap.php:, (*8)

You need to register the module in the system, (*9)

for register module in system 'moduleName'; for register module in module parentModuleName/moduleName; public static $modules = ['test/menu' => 'jakharbek\menu\modules\menu\Module'];, (*10)

You need to install the download folder, (*11)

self::$upload_folder = Yii::getAlias("@webroot")."/uploads/menu/"; self::$upload_folder_source = Yii::getAlias("@web")."/uploads/menu/";, (*12)

You need to provide links to pages:, (*13)

public static $pages = [ 'search' => '/test/menu/menu/search', 'manager' => '/test/menu/menu/manager', 'delete' => '/test/menu/menu/delete' ];, (*14)

To indicate its permission to access the admin to change:, (*15)

public static $premission_admin_panel = "controlPanel";, (*16)

For layout of the menu for your site, you need to inherit the ManuRender class and implement its methods and call where you want to map the example menu to the MenoTop classes located in the folders components, (*17)

The Versions

04/12 2017

dev-master

9999999-dev

Меню

  Sources   Download

MIT

The Requires

 

by Jakharbek

extension yii2 menu jakharbek