Table of Contents
Analysis of precautions when using frameset on ThinkPHP backend homepage index, thinkphpframeset
Frameset cannot be used in thinkphp313 display page?
When PHP uses frameset to create the background interface, how can the page in the right frame jump by operating the left frame?
Home Backend Development PHP Tutorial Analysis of precautions when using frameset on ThinkPHP backend homepage index, thinkphpframeset_PHP tutorial

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

Jul 13, 2016 am 10:20 AM
thinkphp

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:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<?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();

  }

 }

?>

Copy after login

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

The index.html page code is as follows:

1

2

3

4

5

6

7

<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...
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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to run thinkphp project How to run thinkphp project Apr 09, 2024 pm 05:33 PM

How to run thinkphp project

There are several versions of thinkphp There are several versions of thinkphp Apr 09, 2024 pm 06:09 PM

There are several versions of thinkphp

How to run thinkphp How to run thinkphp Apr 09, 2024 pm 05:39 PM

How to run thinkphp

How to install thinkphp How to install thinkphp Apr 09, 2024 pm 05:42 PM

How to install thinkphp

Which one is better, laravel or thinkphp? Which one is better, laravel or thinkphp? Apr 09, 2024 pm 03:18 PM

Which one is better, laravel or thinkphp?

Development suggestions: How to use the ThinkPHP framework to implement asynchronous tasks Development suggestions: How to use the ThinkPHP framework to implement asynchronous tasks Nov 22, 2023 pm 12:01 PM

Development suggestions: How to use the ThinkPHP framework to implement asynchronous tasks

ThinkPHP6 data encryption and decryption: protecting sensitive data security ThinkPHP6 data encryption and decryption: protecting sensitive data security Aug 25, 2023 pm 10:52 PM

ThinkPHP6 data encryption and decryption: protecting sensitive data security

How is the performance of thinkphp? How is the performance of thinkphp? Apr 09, 2024 pm 05:24 PM

How is the performance of thinkphp?

See all articles