You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
18
hyhproject/wechat2/controller/Goodscats.php
Executable file
18
hyhproject/wechat2/controller/Goodscats.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace wstmart\wechat\controller;
|
||||
use wstmart\wechat\model\GoodsCats as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 商品分类控制器
|
||||
*/
|
||||
class GoodsCats extends Base{
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public function index(){
|
||||
$m = new M();
|
||||
$goodsCatList = $m->getGoodsCats();
|
||||
$this->assign('list',$goodsCatList);
|
||||
return $this->fetch('goods_category');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user