ThinkPHP background homepage index precautions when using frameset

Source: Internet
Author: User
This article mainly introduces ThinkPHP background homepage index precautions when using frameset. if you need ThinkPHP, refer to ThinkPHP

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.

Related Article

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.