tp5使用header和footer模板
其实只要一句:
{include file="index@tpl/header" /}
header.html的实际目录是在:
/项目/application/index/view/tpl/header.html
如果还是有点乱,看下面的图:
在index.html引用header.html可以这样写。
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
其实只要一句:
{include file="index@tpl/header" /}
header.html的实际目录是在:
/项目/application/index/view/tpl/header.html
如果还是有点乱,看下面的图:
在index.html引用header.html可以这样写。