代码示例

获取分类
// 获取新闻分类 $categories = getCat($parentCid, 'news'); // 获取产品分类 $categories = getCat($parentCid, 'product'); // 获取视频分类 $categories = getCat($parentCid, 'video');
参数说明
// $cid: 父分类ID // $ctype: 内容类型 ('news', 'product', 'experience', 'master', 'kungfu', 'video', 'photo', 'factory') // $order: 排序方式 (默认 'cid desc')

分类数据

分类名称分类ID
11
264
32
49
510
611
712
813
914
1015
113
1258
134
145
156
167
178
1831
1932
2033
2134