创建文件
/app/shangjia/controller/IndexController.php
输入代码
```
<?php
namespace app\Shangjia\controller;
use cmf\controller\ShangjiaBaseController;
use think\Db;
class IndexController extends ShangjiaBaseController{
public function index(){
return $this->fetch(":index");
}
}
```