thinkphp模版包含问题
IndexAction.class.php控制器代码:
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php class IndexAction extends Action{ function index(){ $this->display(); }}?>
模版目录如下:
tpl目录
default目录
index目录
index.html //index目录下面的index.html模版
p/本文来源gao@!dai!ma.com搞$$代^@码5网@搞代gaodaima码ublic目录
header.html
footer.html
我在index/index.html下面使用了分帧结构:
- HTML code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><frameset rows="50%,*"> <frame src="__ROOT__/admin.php/Public/header"/> <frame src="__ROOT__/admin.php/Public/footer"/>
无论怎样都不能显示不了header.html和footer.html的内容啊,求解
——解决方案——————–
对应 header 和 footer 的控制器代码呢?