thinkphp Backstage Building

Source: Internet
Author: User

Earlier said the preliminary construction of the front desk, now to write a background of the building

TP in the front of the building and the background is similar, the division of labor is more clear

Let's start with a background group setting.

The front desk has a function of the background is almost

So, now in the shop folder, create a new Background admin folder, place the background code

And under admin to create the required folder to store the required code

Create the required PHP code in the controller

Same input and previously stated fixed format (note transformation name)

Then create a static background page, and the foreground is the same

Then the interface content will be displayed, the style will not be vinegar. Next you'll start modifying the path display style and picture

The static resource folder in the background is in the folder of admin itself, then copy the Css\js\images.

The picture and style are the same as in the previous front desk. Also need to write absolute path, do not repeat the introduction, detailed look at the previous chapter

Note the constant information for the entry set here in the background:

This sequence of operations is complete.

In this example, the Admin Center page is composed of three pages (head,left,right) and a Mosaic page (index).

The index page is tagged with a frame and is set to the absolute path

Similarly, we can set constant information for easy maintenance

Simply introduce the constant information:

Constant information can be detected by this method

Then view the source code query by visiting the Web page.

So for the above frame tag, you can set the absolute path constant:

But this time access to the page is an error message

Then find this mixed file based on this path and change the path:

So we have to change the original code path.

In this way, the first page of our backstage is officially built.

Next, continue to add product details, add, modify the static page

Remember to modify the path of the picture and style

Continue to refine the site content below

This step is to add other pages to the framework of this page without conflict, more convenient for users to browse

The resulting effect (which can appear at the bottom right of the current page)

When you click "Back", "modify", use the constant controller

thinkphp Backstage Building

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.