zhujinkui/tp5-category
Composer 安装命令:
composer require zhujinkui/tp5-category
包简介
This is an infinite Classification Library Based on the ThinkPHP5 framework
README 文档
README
这是一个基于ThinkPHP5框架的无限分类库
案例展示
安装
composer require zhujinkui/tp5-category
代码举例使用
建立Node控制器,读取节点列表
<?php
namespace app\common\controller;
use think\Controller;
class Node extends Controller
{
/**
* [index 节点管理]
* @return array [节点树]
*/
public function index()
{
$cat = new \think\Category('authRule', ['id', 'pid', 'title', 'fullname']);
$temp = $cat->getList();
}
}
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-03-03