masterzero/yii2-nestable

There is no license information available for the latest version (v1.0.1) of this package.

Plugin for yii2-nestable by ASlatius to view nested sets nodes

v1.0.1 2017-01-16 15:46 UTC

This package is not auto-updated.

Last update: 2022-05-09 03:29:09 UTC


README

Plugin for yii2-nestable by ASlatius to view nested sets nodes

Installation

Before install you need have composer.

Make sure you've attached the NestedSetsBehavior by creocoder correctly to your model. Then add the node move handler to you controller by attaching the supplied action;

Either run

$ php composer.phar require masterzero/yii2-nestable "*"

or add

"masterzero/yii2-nestable": "*"

to the require section of your composer.json file.

Usage

<?= masterzero\widgets\Nestable::widget([
            'query' => \common\models\NestedSetModel::find(),
        ]);
?>