熊猫学猿--thinkphp5修改首页

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

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

2、在index下创建html文件index

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

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

原来使用fetch,就得继承Controller

发布了165 篇原创文章 · 获赞 34 · 访问量 35万+

猜你喜欢

转载自blog.csdn.net/liuhongwei_study/article/details/102957136