安装tp5之后,想修改首页内容,加入视图html文件。

1、在application\index\目录下,新建文件夹view,view下创建文件夹index

2、在index下创建html文件index

熊猫学猿--thinkphp5修改首页

3、application\index\controller\Index.php中修改,使用fetch

熊猫学猿--thinkphp5修改首页

4、这时再访问,就【页面错误】

原来使用fetch,就得继承Controller

熊猫学猿--thinkphp5修改首页

相关文章:

  • 2021-11-23
  • 2021-05-18
  • 2021-06-12
  • 2021-11-23
  • 2022-02-02
  • 2021-12-18
  • 2021-04-21
  • 2021-07-31
猜你喜欢
  • 2021-11-16
  • 2021-05-18
  • 2021-11-17
  • 2021-09-05
  • 2021-08-09
  • 2021-10-11
  • 2021-12-28
相关资源
相似解决方案