Http://blog.sina.com.cn/s/blog_aba86c0d0101fl73.html
Framework 3.1.2 Version 1. Download the thinkphp_3.12_ core package. After decompression, put it in the project below the WWW directory.
2. The general foreground file is index.php, (most of the day before yesterday is the home directory)//Open Boot Mode define (' App_debug ', true); 1. Determine the application ranking home define (' app_name ', ' home '); 2. Determine the application path define (' App_path ', './home/'); 3. Introduction of the core document require './thinkphp/thinkphp.php ';
Note: This is the front entrance, if you need backstage, create a adamin.php, and then copy the above, and then modify the home, changed to Adamin on it.
3. Access to the corresponding PHP file, will automatically generate some foreground code when the directory structure. As follows:
#项目目录结构及说明: Home foreground application Folder ├─common project common file directory ├─conf project configuration directory ├─lang Project language directory ├─lib Project class Library directory │├─action Action class Library directory │├─behavior row For Class Library directory │├─model Model class Library directory │└─widget Widget class library directory ├─runtime Project runtime directory │├─cache template cache directory │├─data data cache directory │├─logs log file directory │└─ Temp Temporary cache directory └─TPL project template directory
This is the directory structure of the framework. (Extract into the project, refresh the project, you can see the frame structure.) )
Thinkphp Core Document Introduction ├─thinkphp.php Framework Portal File ├─common Framework public file ├─CONF Framework profile ├─extend Framework extension directory ├─lang Core Language Pack directory ├─lib core class library directory │├─beh Avior core Behavior Class Library │├─core core base Class library │├─driver built-in driver ││├─cache built-in cache driver ││├─db built-in database driver ││├─taglib built-in tag driver ││└─templa Te built-in template engine driver │└─template built-in template engine └─TPL system template Directory
This is our common project framework structure. If the access indx.php error, said the memory is not enough, modify the php.ini file in the Memory_limit this value can be changed.