yii2-treemanager
Installation
The preferred way to install this extension is through composer.
Either run
composer require mirkhamidov/yii2-treemanager "*"or add
"mirkhamidov/yii2-treemanager": "*"
to the require section of your composer.json file.
Usage
echo mirkhamidov\treemanager\TreeManagerWidget::widget([
'rootNodeId' => $rootId,
'modelClass' => $modelClass,
]);