Kill lui Lei dog thinkphp project----Enterprise Website 1 Quick Build backstage

Source: Internet
Author: User

We're going to take the old way, get rid of all the extra stuff in the frame, and build the frame inside the index.php.

<? PHP     // defining the project directory    Define (' App_path ', './web/');     // Start Debugging    Define (' App_debug ',True);     // include thinkphp project entry file    require "Thinkphp/thinkphp.php";

Then go to the Web directory and copy a home and rename the admin

Then operate under the index controller

The code looks like this:

<? phpnamespace Admin\controller;  Use Think\controller; class extends Controller {    publicfunction  index () {        $this  Display ();    }}

Then store the template files that we have prepared into the Index folder of the views view

Then go back to the root directory of the site and create a public folder,

Then in this directory to create a separate admin and home directory is the main role is to store our pictures and CSS and JS:

Then we will put the artwork for us to prepare the picture and CSS and JS code into our Admin directory:

Then go back to the view to modify the style of our index.html template file and the path of JS and Picture:

Then visit our backstage to see how it works:

Kill lui Lei dog thinkphp project----Enterprise Website 1 Quick Build backstage

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.