1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <?php
|
| namespace app\supplier\controller\product;
|
| use app\supplier\controller\Controller;
| use app\common\model\product\Category as CategoryModel;
|
| /**
| * 商品分类
| */
| class Category extends Controller
| {
| /**
| * 商品分类列表
| */
| public function index()
| {
| $model = new CategoryModel;
| $list = $model->getCacheTree();
| return $this->renderSuccess('', compact('list'));
| }
|
|
| }
|
|