First, the template contains
<include file= "full template file name"/>
<include file= "./tpl/default/public/header.html"/>
<include file= "read"/>
<include file= "Public:header"/>//Do not need the public module as long as this folder can be
<include file= "Blue:User:read"/>
<include file= "$tplName"/>
<include file= "header" title= "thinkphp framework" keywords= "open source Web development framework"/>
Variables are accepted in the template by [variable]
<include file= ' File1,file2 '/>
second, template rendering in the manual template engine-template layout layout.html to the template folder and the module folder sibling
1. Automatically turn on the template rendering settings configuration file
' layout_on ' =>true,//turn on template rendering
Prepare a template rendering page and use {__content__} on the page to accept the content of the specific template page
If you don't want to use a render template in a specific template, you can add {__nocontent__} at the top of the page
2, do not turn on automatic template rendering can be added at the top of each page
<layout name= ' layout '/>
3. Tips for use
The contents of other template files can also be used in the render template file
<include file= ' Public:header '/>
<body>
<p> here is the rendering page!!! </p>
{__content__}
</body>
Iii. Inheritance of templates
thinkphp templates include, Render, inherit