Skip to content

dasturchiuz/yii2treeArray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

NestedSetsTreeBehavior

NestedSetsTreeBehavior this is the connector between https://github.com/creocoder/yii2-nested-sets

Installation

The preferred way to install this extension is through composer.

Either run

composer require dasturchiuz/treebehaviorcategories

or add

"dasturchiuz/treebehaviorcategories": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your model :

'htmlTreeCategory'=>[
    'class' => \dasturchiuz\treebehaviorcategories\NestedSetsTreeBehavior::className()
]

use

SomeModel::findOne($id)->treeCategory()

to get arrays

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages