2017 © Pedro Peláez
 

yii2-extension yii2-tree-menu

Tree menu for yii2 framework

image

sitronik/yii2-tree-menu

Tree menu for yii2 framework

  • Tuesday, June 27, 2017
  • by sitronik
  • Repository
  • 1 Watchers
  • 1 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 73 % Grown

The README.md

yii2-tree-menu

Treemenu, (*1)

Installation

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

Either run, (*3)

$ php composer.phar require sitronik/yii2-tree-menu "@dev"

or add, (*4)

"sitronik/yii2-tree-menu": "@dev"

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

Usage

Step 1: Prepare Database

Create your database table to store the tree structure. You can do it in this way:, (*6)

Run DB Migrations

You can run the migrations script provided to create the database structure from your yii programming console:, (*7)

php yii migrate/up --migrationPath=@vendor/sitronik/yii2-tree-menu/migrations

Step 2: Setup Module

Configure the module named treemenu in the modules section of your Yii configuration file., (*8)

'modules' => [
   'treemenu' =>  [
        'class' => 'sitronik\treemenu\Module',
    ]
]

Step 3: Using Tree Widget

In your view files, you can now use the tree widget directly to manage tree data as shown below:, (*9)

echo sitronik\treemenu\Tree::widget();

Step 4: Manage Tree Widget

Go to /treemenu and manage your tree, (*10)

Manage Tree, (*11)

License

yii2-tree-menu is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*12)

The Versions

27/06 2017

dev-master

9999999-dev

Tree menu for yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Avatar sitronik

extension yii2