钓鱼的 11个月前

Yii2无限分类-category level

Yii2无限分类

<?php 
/*
 * 无限极分类 类
 */
namespace common\components;
header("Content-Type: text/html; charset=UTF-8");
Class TreeClass {
    //组合一维数组
    Static Public function unlimitedForLevel ($cate, $html = '|---', $parent_id = 0, $level =...