2017 © Pedro Peláez
 

yii2-extension yii2-ztree

The zTree extension for the Yii framework

image

diselop/yii2-ztree

The zTree extension for the Yii framework

  • Wednesday, May 20, 2015
  • by diselop
  • Repository
  • 2 Watchers
  • 0 Stars
  • 73 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

ztree

zTree is a multi-functional 'tree plug-ins.', (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist diselop/yii2-ztree "*"

or add, (*4)

"diselop/yii2-ztree": "*"

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

Usage

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

```php = \diselop\ztree\Ztree::widget(['nodes'=>[ 'name'=>'cities','children'=>[ ['name'=>'USA','children'=>[ ['name'=>'New York'], ['name'=>'Los Angeles'], ['name'=>'Chicago'], ['name'=>'San Diego'], ]], ['name'=>'China','children'=>[ ['name'=>'Beijing'], ['name'=>'Shanghai'], ['name'=>'Shenzhen'], ['name'=>'Gaozhou'], ]], ['name'=>'Russia','children'=>[ ['name'=>'Moscow'], ['name'=>'Orenburg'], ['name'=>'Omsk'], ['name'=>'Samara'], ]], ] ]]); ?>, (*7)

The Versions

20/05 2015

dev-master

9999999-dev https://github.com/diselop/yii2-ztree

The zTree extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

by Tony Krutins

extension yii2 tree ztree