Thinkphp Backstage Home Index use frameset when the analysis of considerations, Thinkphpframeset
HTML frameset tags are widely used in multi-window programming, especially in the background pages section of the project. This article is to analyze the thinkphp background index use frameset when the precautions. Specific 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 index.html page code is as follows:
Top.html (slightly)
Left.html (slightly)
Right.html (slightly)
Precautions:
when calling top.html,left.html,right.html, you should use the path __url__/to invoke the method instead of using __tmpl__/index/to invoke the template .
Interested readers can debug and run the examples in this article to understand the specific use of path invocation.
thinkphp313 Display page can not use frameset?
Class Indexaction extends Sessionaction {
System Home
Public Function index () {
$this->display ();
}
......
Is there a problem with this notation?
I remember not all the following notation (⊙_⊙)?
Class Indexaction extends Action {
System Home
Public Function index () {
$this->display ();
}
....
}
When PHP uses frameset to create a background interface, how do you do this by manipulating the left frame so that the page in the right frame jumps?
There will be a name for the right frame in the frameset (assuming value: rframe)
In the link to the left frame. Adding a target= "Rframe" allows you to click on the left link. Right page jump effect ...
http://www.bkjia.com/PHPjc/868232.html www.bkjia.com true http://www.bkjia.com/PHPjc/868232.html techarticle thinkphp Background Index use frameset when the analysis of considerations, Thinkphpframeset HTML FRAMESET tags in the multi-window program design has a wide range of applications, especially in the project background page ...