## 在controller找到Index.php创建后台管理控制器
*****
![](https://img.kancloud.cn/9c/b1/9cb194570c23b13d39acc8a972f91cc4_306x255.png)
```
classIndexextendsController
{
publicfunctionindex()
{
//用户信息表
$user = Db::name('user')->select();
//输出查询到的数据到后端模板页
$this\->assign('user',$user);
return$this\->fetch();
}
}
```
*****
```
审核:贾超贤 编辑:张志宇 更新时间:2021-07-01 17:5:30
```