admin/app/shop/controller/supplier/Category.php
@@ -2,6 +2,7 @@ namespace app\shop\controller\supplier; use app\common\enum\supplier\SupplierType; use app\shop\controller\Controller; use app\shop\model\supplier\Category as CategoryModel; @@ -15,11 +16,12 @@ */ public function index() { $typeList = SupplierType::getTypeName();// 获取请求的供应商类型参数 // 广告分类 $model = new CategoryModel; $params = $this->request->param(); $category = $model->getAll($params); return $this->renderSuccess('', compact('category')); return $this->renderSuccess('', compact('category','typeList')); } /**