Analysis of precautions when using frameset on ThinkPHP backend homepage index, thinkphpframeset_PHP tutorial

WBOY
Release: 2016-07-13 10:20:12
Original
844 people have browsed it

Analysis of precautions when using frameset on ThinkPHP backend homepage index, thinkphpframeset

The frameset tag of HTML is widely used in multi-window program design, especially in the project background page. This article will analyze the precautions when using frameset on the ThinkPHP backend homepage index. The details are as follows:

File path: aoli/admin/Lib/Action/IndexAction.class.php

The code is as follows:

<&#63;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();
  }
 }
&#63;>

Copy after login

File path: aoli/admin/Tpl/default/Index

The index.html page code 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>
Copy after login

top.html (omitted)

left.html (omitted)

right.html (omitted)

Note:

When calling top.html, left.html, right.html, you should use the path __URL__/ to call the method, but not __TMPL__/Index/ to call the template .

Interested readers can debug and run the example in this article to experience the specific usage of path calling.

Frameset cannot be used in thinkphp313 display page?

class IndexAction extends SessionAction {
//System homepage
public function index(){
$this->display();
}
......
}Is there any problem with this way of writing?
Don’t I remember it’s always written in the following way (⊙_⊙)?
class IndexAction extends Action {
//System homepage
public function index(){
$this->display();
}
....
}

When PHP uses frameset to create the background interface, how can the page in the right frame jump by operating the left frame?

There will be a name of the right frame in the frameset (assuming the value is: rframe)
In the link of the left frame. Add a target="rframe" to achieve clicking on the left link. The right page jumps Effect...

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/868232.htmlTechArticleThinkPHP backend homepage index Analysis of precautions when using frameset, thinkphpframeset html’s frameset tag has a role in multi-window program design Widely used, especially in project background pages...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!