'LAYOUT_ON' =>true, //布局文件开启状态,默认false
'LAYOUT_NAME' =>'layout', //布局文件名称,默认layout
'TMPL_LAYOUT_ITEM' => '{__CONTENT__}',
二.这是布局文件的代码。其中ti
<html>
<head>
<me
<ti
</head>
<body>
<include file="Public:header" />
{__CONTENT__}
<include file="Public:footer" />
</body>
</html>
三.默认控制器的默认方法,传了ti
class IndexAction extends Action{
function index(){
$ti
$this->assign("ti
$this->display("index");
}
}
四.模板文件目录
Tpl
Index
index.html
Public
header.html
footer.html
layout.html
问题1.layout.html引入的header和footer在index.html页面均不显示
2.layout里的ti
最佳答案