'LAYOUT_NAME'=>'layout',//在tpl根目錄下創建layout.htmlhtml
<include file="Public:header" />htm
{__CONTENT__}模板
<include file="Public:footer" />
class
若想要某個頁面不加載公共的header,footer,在模板頁面加入{__NOLAYOUT__}便可。渲染
版權聲明:本文爲博主原創文章,未經博主容許不得轉載。file
'LAYOUT_NAME'=>'layout',//在tpl根目錄下創建layout.htmlhtml
<include file="Public:header" />htm
{__CONTENT__}模板
<include file="Public:footer" />
class
若想要某個頁面不加載公共的header,footer,在模板頁面加入{__NOLAYOUT__}便可。渲染
版權聲明:本文爲博主原創文章,未經博主容許不得轉載。file