


Analysis of precautions when using frameset on ThinkPHP backend homepage index, thinkphpframeset_PHP tutorial
Jul 13, 2016 am 10:20 AMAnalysis 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 |
|
File path: aoli/admin/Tpl/default/Index
The index.html page code is as follows:
1 2 3 4 5 6 7 |
|
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.
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();
}
....
}
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...

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

There are several versions of thinkphp

Which one is better, laravel or thinkphp?

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

ThinkPHP6 data encryption and decryption: protecting sensitive data security
