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