jayshah88 / yii2-multilevel-category
Create n level child dropdown
Package info
github.com/jayshah88/yii2-multilevel-category
Type:yii2-extension
pkg:composer/jayshah88/yii2-multilevel-category
dev-master
2015-02-18 13:52 UTC
Requires
- php: >=5.5.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-29 01:34:18 UTC
README
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));