ThinkPHP background homepage index Analysis of precautions when using frameset, thinkphpframeset
The html frameset tag is widely used in multi-window program design, especially in the project background page. This article will analyze the ThinkPHP background home page index precautions when using frameset. The details are as follows:
File Path: aoli/admin/Lib/Action/IndexAction. class. php
The Code is as follows:
<?php class IndexAction extends Action{ public function index(){ $this->display(); } public function top(){ $this->display(); } public function left(){ $this->display(); } public function right(){ $this->display(); } }?>
File Path: aoli/admin/Tpl/default/Index
The code of the index.html page is as follows:
<frameset rows="20%,*"> <frame src="__URL__/top" name="top"> <frameset cols="20%,*"> <frame src="__URL__/left" name="left"> <frame src="__URL__/right" name="right"> </frameset> </frameset>
Top.html (omitted)
Left.html (omitted)
Right.html (omitted)
Note:
When you use top.html, left.html, and right.html, you should use the path _ URL _/To Call The method. Instead, you cannot use _ TMPL _/Index/to call the template.
Interested readers can debug and run the example in this article to understand the specific usage of path calling.
The thinkphp313 display page cannot use frameset?
Class IndexAction extends SessionAction {
// System Homepage
Public function index (){
$ This-> display ();
}
......
} Is there no problem with this writing?
I remember not all of the following statements (⊙ _ ⊙ )?
Class IndexAction extends Action {
// System Homepage
Public function index (){
$ This-> display ();
}
....
}
When PHP uses frameset to create the background interface, how does one operate the left frame to redirect the page in the right frame?
In frameset, there will be a name of the right frame (assuming the value is rframe)
Add a target = "rframe" to the link on the left to achieve the effect of clicking the link on the left. The page Jump on the right...