Home Backend Development PHP Tutorial thinkphp3.1 与frameset的显示有关问题

thinkphp3.1 与frameset的显示有关问题

Jun 13, 2016 am 11:13 AM
gt html index nbsp

thinkphp3.1 与frameset的显示问题

本帖最后由 EC_jouvie 于 2013-01-23 14:18:29 编辑 本人看的是thinkphp2.1版本的视频教程,老师在演示的过程中在Index模块里面index方法中display index.html页面;index.html是一个含有frameset的框架,一切正常运行。
可是到我自己操作的时候,却出现这样的问题,页面一片空白,什么都没有。我自己用3.1版本的thinkphp.求教高手指点。
贴出代码
IndexAction.class.php
class IndexAction extends Action {
    public function index(){
$this->assign('title','标题');
$this->display();
    }
public function top(){
$this->display();
}
public function menu(){
$this->display();
}
public function main(){
$this->display();
}
public function footer(){
$this->display();
}
}

index.html
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



{$title}//此处的$title变量还是可以显示的



    
    
        
    
    



tpl模板目录下存在index.html、top.html、menu.html、main.html、footer.html文件 

本人用DW编辑,每次修改__URL__部分再保存index.html页面的时候就会跳出错误提示框,内容如下:
文件"F:\Website\SIM\App\Student\Tpl\Index\__URL__\footer"不存在。
这个路径明明是模板所在的路径,按理说应该是模块方法所在路径才是啊?

主要的问题就是页面无法正常显示,先解决了这个,那个路径的问题我想也就迎刃而解了,求指教,谢谢
thinkphp frameset __URL__
------解决方案--------------------
这就不太清楚了,我遇到过一次是因为 footer 文件的后缀写错了,差个l,是htm
所以你检查下你的footer.html 这个文件,因为你其他文件都找的到,路径多半是对的

------解决方案--------------------
我回去翻了下我的程序,dw 误报是正常的,但我后台页面还是能够显示出来的
我记得thinkphp 的 tpl 中 默认的模板 叫做 default,你看你不是少了这个
你看的__URL__ 的值是不是正确的
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

See all articles