PHPackages                             ale10257/yii2-ext-for-work-nested-set - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ale10257/yii2-ext-for-work-nested-set

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ale10257/yii2-ext-for-work-nested-set
=====================================

Include widget and behavior for edit Nested Set tree

11531PHP

Since May 17Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ale10257/Extension-for-edit-Nested-Set-tree)[ Packagist](https://packagist.org/packages/ale10257/yii2-ext-for-work-nested-set)[ RSS](/packages/ale10257-yii2-ext-for-work-nested-set/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (1)

Extension for edit Nested Set tree
==================================

[](#extension-for-edit-nested-set-tree)

Include widget and behavior for edit Nested Set tree

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require ale10257/yii2-ext-for-work-nested-set "dev-master"

```

or add

```
"ale10257/yii2-ext-for-work-nested-set": "dev-master"

```

to the require section of your `composer.json` file.

Capabilities
------------

[](#capabilities)

1. Generating a menu tree as a table (use Nested Set tree)
2. Drag &amp; Drop rows table
3. Save result in DB

**Example table before move**

[![before move](https://camo.githubusercontent.com/db538d60cd16abe1063af4140c93ee4cb29afb19ce970a4dc852401e24aa4284/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565315f2e706e67)](https://camo.githubusercontent.com/db538d60cd16abe1063af4140c93ee4cb29afb19ce970a4dc852401e24aa4284/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565315f2e706e67)

**Move**

[![move](https://camo.githubusercontent.com/6505615edd59d10ac94b3d1d9fda35215eb334a7a2aeb6931db38770dc74679e/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565325f2e706e67)](https://camo.githubusercontent.com/6505615edd59d10ac94b3d1d9fda35215eb334a7a2aeb6931db38770dc74679e/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565325f2e706e67)

**After move**

[![after move](https://camo.githubusercontent.com/caa6fd623a7d569a8ad6790748084b1006f400f39dfcd2dff703211738a529ca/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565335f2e706e67)](https://camo.githubusercontent.com/caa6fd623a7d569a8ad6790748084b1006f400f39dfcd2dff703211738a529ca/687474703a2f2f6b756c6167696e2d616c65782e72752f6e6f2d64656c6574652d696d616765732f74726565335f2e706e67)

***Important***
---------------

[](#important)

**Only siblings elements can be dragged!!!**

Usage
-----

[](#usage)

**Model**

Set up the model as here: and determine the constant SITE\_ROOT\_NAME and behaviors

```

```

**View index.php for Category**

```
//...

//...
```

**View tree.php**

```
