dev-master
9999999-devTree menu for yii2 framework
BSD-3-Clause
The Requires
by sitronik
extension yii2
Tree menu for yii2 framework
, (*1)
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)
Create your database table to store the tree structure. You can do it in this way:, (*6)
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
Configure the module named treemenu
in the modules section of your Yii configuration file., (*8)
'modules' => [ 'treemenu' => [ 'class' => 'sitronik\treemenu\Module', ] ]
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();
Go to /treemenu
and manage your tree, (*10)
, (*11)
yii2-tree-menu is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*12)
Tree menu for yii2 framework
BSD-3-Clause
extension yii2