PHP code example of voskobovich / yii2-nested-sets-editor
1. Go to this page and download the library: Download voskobovich/yii2-nested-sets-editor 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/ */
voskobovich / yii2-nested-sets-editor example snippets
public function behaviors()
{
return [
'nestedSetsBehavior' => 'voskobovich\nestedsets\behaviors\NestedSetsBehavior',
];
}
<?= \voskobovich\nestedsets\widgets\nestable\Nestable::widget([
'modelClass' => 'models\ModelName',
])