ThinkPHP background homepage index analysis of precautions when using frameset, thinkphpframeset_PHP tutorial

Source: Internet
Author: User
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...

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.