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