PHP code example of wokster / yii2-nested-sets-tree-behavior
1. Go to this page and download the library: Download wokster/yii2-nested-sets-tree-behavior library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wokster / yii2-nested-sets-tree-behavior example snippets
'htmlTree'=>[
'class' => \wokster\treebehavior\NestedSetsTreeBehavior::className()
]
SomeModel::findOne($id)->tree()