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

thinkphp模版包含有关问题

WBOY
Release: 2016-06-13 13:28:22
Original
876 people have browsed it

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();

    }

}

?>

Copy after login

模版目录如下:
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>  
Copy after login

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


------解决方案--------------------
对应 header 和 footer 的控制器代码呢?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template