【TP5.0】页面布局,引入公共的模版文件

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

2、模块结构:

 

3、使用方式:

{include file="common/header"}
<!--  <body>在header里,不用在写 -->

<div>
    let's do something !~
</div>

<!--  </body>在footer里,不用在写 -->
{include file="common/footer"}

 

posted @ 2018-03-24 23:16  PHP急先锋  阅读(3401)  评论(0编辑  收藏  举报