Thinkphp3.1 and frameset display problems this post was last edited by EC_jouvie at 2013-01-2314: 18: 29 and I saw thinkphp2.1 video tutorials, during the demonstration, the instructor asked about the display of Index thinkphp3.1 and frameset in the index module.
At the end of this post, EC_jouvie edited the video tutorial for thinkphp2.1 at 14:18:29. during the demonstration, the instructor displayed index.html in the Index method in the index module as a frame containing frameset, everything works normally.
However, this problem occurs when I operate it myself. the page is blank and there is nothing. I use thinkphp of version 3.1.
Post Code
IndexAction. class. php
Class IndexAction extends Action {
Public function index (){
$ This-> assign ('title', '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
{$ Title}// The $ title variable can still be displayed.
The index.html#top.html?menu.html#main.html#footer.html file is stored in the tpltemplate directory.
This user uses dwediting. the error prompt box is displayed every time the __url1_indexis modified and the index.html page is saved. the content is as follows:
The file "F: \ Website \ SIM \ App \ Student \ Tpl \ Index \__ URL __\ footer" does not exist.
This path is clearly the path where the template is located. it should be the path where the module method is located?
The main problem is that the page cannot be displayed normally. solve this problem first, and I want to solve the path problem. please advise. thank you for thinkphp frameset _ URL __
------ Solution --------------------
This is not clear. I have encountered a problem once because the suffix of the footer file is wrong. The difference is l, which is htm.
Check your footer.html file. most of the files you have found are correct paths.
------ Solution --------------------
I went back and flipped through my program. dw false positives are normal, but I can still display them on the background page.
I remember the default template in thinkphp tpl is default.
Is the value of _ URL _ correct?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service