PHP code example of slatiusa / yii2-nestable
1. Go to this page and download the library: Download slatiusa/yii2-nestable 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/ */
slatiusa / yii2-nestable example snippets
$ php composer.phar
use slatiusa\nestable\Nestable;
class yourClass extends Controller
{
public function actions() {
return [
'nodeMove' => [
'class' => 'slatiusa\nestable\NodeMoveAction',
'modelName' => TreeModel::className(),
],
];
}