需要在后台config中添加
'LAYOUT_ON'=>true,
'LAYOUT_NAME'=>'layout',
在view中添加文件layout.html
<include file="Public:header" />
{__CONTENT__}
<include file="Public:footer" />
注意使用尖括号