dev-master
9999999-dev https://github.com/diselop/yii2-ztreeThe zTree extension for the Yii framework
BSD-3-Clause
The Requires
by Tony Krutins
extension yii2 tree ztree
The zTree extension for the Yii framework
zTree is a multi-functional 'tree plug-ins.', (*1)
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)
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 zTree extension for the Yii framework
BSD-3-Clause
extension yii2 tree ztree