浙江专业网站建设商城报价,优秀的网站首页,万维网网站服务的名称,营销型单页面网站目录8.连接多个数据库7.多级控制器不存在6.分页5.非法请求4.关于路由**3.初体验页面****2.加入fileheader添加注释****1.配置mysql0. 官方开发手册一些网址 http://127.0.0.1:8000/index 原桌面 http://127.0.0.1:8000/hello/fsh hello,fsh#xff08;index中hello方法#x…
目录8.连接多个数据库7.多级控制器不存在6.分页5.非法请求4.关于路由**3.初体验页面****2.加入fileheader添加注释****1.配置mysql0. 官方开发手册一些网址 http://127.0.0.1:8000/index 原桌面 http://127.0.0.1:8000/hello/fsh hello,fshindex中hello方法使用了路由 http://127.0.0.1:8000/index.php/user 教程按照table输出数据//已删除不能用了
8.连接多个数据库
教程https://www.bilibili.com/video/BV12E411y7u8?p7vd_source6ac4425060c7509b7a8364ea9fd8694c 视频07 配置两处database.php, .env
7.多级控制器不存在
问题单应用模式目录结构为app/controller/group/Blog.php运行时提示控制器不存在 原因namespace 解决命名空间修改为namespace app\controller\Group; 教程https://zhuanlan.zhihu.com/p/507300782
6.分页
to be done
5.非法请求
问题提示非法请求 原因路由 解决方法https://www.cnblogs.com/cute/p/16870222.html
4.关于路由
http://localhost/thinkphp/index.php/Home/Demo1/index 访问地址的规则为http://域名/项目名/入口文件/模块名/方法名/键1/值1/键2/值2 index.php 为入口文件 Home/Demo1 为模块名 index为方法名
3.初体验页面
配置css与js 下载网址https://getbootstrap.com/docs/5.3/getting-started/download/ 教程https://blog.csdn.net/weixin_46560512/article/details/119140572 问题运行http://127.0.0.1:8000/index.php/index/test时发生问题“Driver [Think] not supported” 原因忘记引入视图模块 解决方法 教程https://blog.csdn.net/sanler/article/details/111604776
2.加入fileheader添加注释
https://blog.csdn.net/HQL_Q/article/details/127593746 http://t.csdn.cn/aQQrb
**1.配置mysql
数据库命名规范https://www.cnblogs.com/ricklz/p/12431375.html
教程https://blog.csdn.net/weixin_44198965/article/details/108107511** 问题1该网址下显示“页面错误请稍后再试” 解决方法原名称.example.env 更改为.env
问题2thinkPHP 无法连接数据库 could not find driver 根据错误提示信息我的情况是pdo未开启 解决方法 配置php.ini文件 打开配置文件Ctrlf搜索pdo,将代码前面的分号去掉。
extension_dir ext
extensionpdo_firebird
extensionpdo_mysql
extensionpdo_oci
extensionpdo_odbc
extensionpdo_pgsql
extensionpdo_sqlite
extensionpgsql因为我要连接的是mysql,所以当我将mysql前的分号去掉就可以成功运行了。 教程https://blog.csdn.net/weixin_42325823/article/details/106278947
0. 官方开发手册
https://www.kancloud.cn/manual/thinkphp6_0/1037486