fastadmin中自建留言板的总结(一)TP5.0的数据流程

理解数据流程

1.首先建立数据库test
2.一键CURD
3.复制application/admin/model中的test到application/index/model里,并修改命名空间
4.在index模块index控制器书写相关方法
5.引入新建的模型,让模型来进行数据库的操作。

多多查阅tp5.0官方手册

手册地址:https://www.kancloud.cn/manual/thinkphp5/118003
1.post和get的判断等等 请求:https://www.kancloud.cn/manual/thinkphp5/158834
2.对数据库的增删改查。 模型:https://www.kancloud.cn/manual/thinkphp5/135188
3.URL的生成 路由:url生成:https://www.kancloud.cn/manual/thinkphp5/118041
4.TP模板标签 模板-内置标签-循环输出标签:https://www.kancloud.cn/manual/thinkphp5/125016
5.关于提示 控制器-重定向 https://www.kancloud.cn/manual/thinkphp5/118051

原文地址:https://www.cnblogs.com/cn-oldboy/p/12756196.html