PHP. MVC template tag system (4)

Source: Internet
Author: User
Page layout in this unit we will see how to apply the template tag system structure to a standard template page. In this example, we have applied a simple HTML page layout. for details, see: This page consists of multiple scale units, just like page settings.

Page layout

In this unit, we will see how to apply the template tag system structure to a standard template page. In this example, we have applied a simple HTML page layout. please refer:

This page consists of multiple scale units, just as page designers and developers are familiar. the body of this page consists of three contained units: header, content body, and footer. now let's take a look at these units and learn how to apply the template tag system.

Page Subject

The following code unit displays the subject:
The Page Body Layout
1
<@ SaleMonth = data. getValueBean ('sale _ month') @>
<@ SaleTitle = data. getValueBean ('sale _ title') @>
<@ DealHeading = data. getValueBean ('dest_heading ') @>
<@ SalesAreaID = 'central District '@>




<BR> 2 <@ = viewConfig. getAppTitle @> <BR>














3 <@ include 'pageheader. SS' @>


4 <@ include 'sale/pageContent. SS' @>


5 <@ include 'pagefooter. SS' @>


1: page declaration
The first interesting entry is the page declaration at the top of the page (1 ). we declare these variables at the beginning of the page, so these variables will be applied on the following page and include pages like the header.
2: Page title
Next, we will apply the expression to initialize the page title (2). This value can be obtained from the view-resources element in the configuration file using ViewResourcesConfig-> getAppTitle:

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.