thinkphp5.0 模板包含文件

在index.html里包含layout.html:{include file=“layout”}它这里是以绝对路径查找所包含的文件,默认是view目录下

thinkphp5.0 模板包含文件

在这种情况下,要在在index.html里包含layout.html,就要:{include file=“index/layout”},虽然两者在同一目录下。

相关文章:

猜你喜欢
  • 2021-04-29
  • 2022-02-07
  • 2021-11-26
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
相关资源
相似解决方案