Create an index under the thinkphp root directory. php file front-end usage: 1. determine the foreground application name define (& amp; #39; APP_NAME & amp; #39;, & amp; #39; Home & amp; #39;); 2. determine the application path define (& amp; #39...
In the thinkphp root directory, create the index. php file and use it at the front end:
1. confirm the foreground application name
Define ('app _ name', 'home ');
2. determine the application path
Define ('app _ path', './Home/'); // The Home folder in the current directory. The first letter of all Directory files must be capitalized.
3. reference the core file, which is required here
Require './ThinkPHP. php ';
Create admin. php file background
1. confirm the background application name
Define ('app _ name', 'admin ');
2. determine the application path
Define ('app _ path', './Admin /');
3. reference the core file, which is required here
Require './ThinkPHP. php ';
Public File placement Public css js image
Put the Uplode file into a public image