IndexController.php
475 字节
<?php
namespace app\index\controller;
use app\goods\model\GoodsModel;
use cmf\controller\HomeBaseController;
use think\Db;
class IndexController extends HomeBaseController
{
public function index()
{
$goods = new GoodsModel;
$goodsList = $goods->getGoods(2);
$return = [
'banner' => getBanner(),
'goodsList' => $goodsList
];
return $this->fetch('', [
'data' => $return
]);
}
}