迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
自定義頁面的,模板如何調用公共模板?
例如調用:
{template "header.html"}
{template "header.html", "/"}
調用上一級頭部文件,適用于插件模板里面
回復@官方插件實習技術 模板在根目錄,需要調用template目錄下的header.html
/自定義頁面目錄/index.html 調用 /template/pc/模板/home/header.html
這句放在: /template/pc/模板/home/page/index.html, 就是他上一級,也就是調用 /template/pc/模板/home/header.html
回復@官方插件實習技術
不是,那個模板是在根目錄的,不是你說的這個目錄。根目錄的這個調用/template/pc/模板/home/header.html
如果都是同一個模板目錄我就會調用,但是不是同一個目錄
回復@官方插件實習技術 你看看
temlate調用范圍之內在/template/pc/模板/home/內,home屬于根,之內調用這里面之內的文件
1樓正解~~~
{template "header.html", "/"}
調用上一級頭部文件,適用于插件模板里面
回復@官方插件實習技術 模板在根目錄,需要調用template目錄下的header.html
/自定義頁面目錄/index.html 調用 /template/pc/模板/home/header.html
{template "header.html", "/"}
這句放在: /template/pc/模板/home/page/index.html, 就是他上一級,也就是調用 /template/pc/模板/home/header.html
回復@官方插件實習技術
不是,那個模板是在根目錄的,不是你說的這個目錄。根目錄的這個調用/template/pc/模板/home/header.html
如果都是同一個模板目錄我就會調用,但是不是同一個目錄
回復@官方插件實習技術

你看看
temlate調用范圍之內在/template/pc/模板/home/內,home屬于根,之內調用這里面之內的文件
1樓正解~~~