jayshah88/yii2-multilevel-category

Create n level child dropdown

Maintainers

Package info

github.com/jayshah88/yii2-multilevel-category

Type:yii2-extension

pkg:composer/jayshah88/yii2-multilevel-category

Statistics

Installs: 63

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-master 2015-02-18 13:52 UTC

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));