This article mainly introduces ThinkPHP background homepage index precautions when using frameset. if you need ThinkPHP, refer to ThinkPHP
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.