1、实例:如后台admin模块,公用一个header.html和footer.hml

2、目录结构:

TP5.0:引入view视图中公共的模版文件

 

3、视图页面的使用方式:

<!--添加header页面数据-->
{include file="common/header"}
<div> 其他不是公共数据 </div>


<!--添加footer页面数据-->
{include file="common/footer"} 

相关文章:

  • 2022-02-23
  • 2021-11-25
  • 2021-08-11
  • 2021-07-17
  • 2021-09-05
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2021-11-30
  • 2021-11-19
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案