Home >Backend Development >PHP Tutorial >thinkphp模版包含有关问题

thinkphp模版包含有关问题

WBOY
WBOYOriginal
2016-06-13 10:26:38762browse

thinkphp模版包含问题
IndexAction.class.php控制器代码:

PHP code
<!--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模版
  public目录
  header.html
  footer.html
我在index/index.html下面使用了分帧结构:
HTML code
<!--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">    </frameset>  

无论怎样都不能显示不了header.html和footer.html的内容啊,求解


------解决方案--------------------
对应 header 和 footer 的控制器代码呢?
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn