安装tp5之后,想修改首页内容,加入视图html文件。
1、在application\index\目录下,新建文件夹view,view下创建文件夹index
2、在index下创建html文件index
3、application\index\controller\Index.php中修改,使用fetch
4、这时再访问,就【页面错误】
原来使用fetch,就得继承Controller
安装tp5之后,想修改首页内容,加入视图html文件。
1、在application\index\目录下,新建文件夹view,view下创建文件夹index
2、在index下创建html文件index
3、application\index\controller\Index.php中修改,使用fetch
4、这时再访问,就【页面错误】
原来使用fetch,就得继承Controller