Skip to content

yii2-multilevel-category allows user to create multilevel dropdown from their desire table for the Yii2.

Notifications You must be signed in to change notification settings

jayshah88/yii2-multilevel-category

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-multilevel-category extension for the Yii2

yii2-multilevel-category allows user to create multilevel dropdown from their desire table for the Yii2.

Installation

Add to the composer.json file following section:

"jayshah88/yii2-multilevel-category": "dev-master"

Usage

add following line at the top of your php file.

use jay\Multilevel;

Example of usage

$cat = new common\models\base\Category();
$ml = new Multilevel();
echo $form->field($model, 'root')->dropDownList($ml->makeDropDown($parents,$cat));

About

yii2-multilevel-category allows user to create multilevel dropdown from their desire table for the Yii2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages