Include

使用方法:

{tag=include?参数1=值&参数2=值&...}

参数说明:

参数 说明 默认值 是否必须
file 无扩展名文件名,放在Template/taglib/include目录 NULL Y
type 可选值:"template","php","text" template N
debug 显示标签的调试信息 NULL N
  • 这个标签可以自定义标签参数,也就是说,被包含的文件需要哪些参数可以直接跟在后面.
  • type值为"template"时,被包含文件将作为模板来解析.
  • 值为"php"时被包含文件作为php执行.
  • 值为"text"时则将被包含文件读入,并显示,不作任何处理.

当type为"php"时必须保证包含的php文件的正确性.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.