ThinkPHP background homepage index analysis of precautions when using frameset, thinkphpframeset. ThinkPHP background homepage index analysis of precautions when using frameset. The frameset tag of thinkphpframesethtml is widely used in multi-window program design, 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:
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/index. php/Article/to call the method. Instead, you cannot use/cms/tpl/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...
Frameset labels of plain html are widely used in multi-window program design, especially in Project background pages...