After downloading the latest version of the framework, unzip to the Web directory and you can see the initial directory structure as follows:
Project App Deployment Catalog ├─Application application directory (can be set) │├─Common Public Module catalog (can be changed) │├─Index module catalog (can be changed) ││├─Config. PHP Module Configuration file ││├─Common. PHP Module Function File ││├─Controller Controllers Directory ││├─Model Catalog ││├─View View Directory ││└─ ... More Class Library Catalogs │├─Command. PHP command line tool configuration file │├─Common. PHP application Public (function) file │├─Config. PHP Application (Public) configuration file │├─Database. PHP Database Configuration file │└─Route. PHP Routing configuration file ├─Extend Extension Class Library directory (definable) ├─PublicWEB Deployment Directory (external access directory) │├─Static Resource Storage directory (CssJsImage) │├─Index. PHP Application Portal File │├─Router. PHP Quick Test File │└─. htaccess forApache Rewrite ├─Runtime directory for runtime applications (writable, configurable) ├─Vendor third-party class library catalogs (Composer) ├─Thinkphp Framework System Catalog │├─Lang Language Pack directory │├─Library framework core Class libraries Directory ││├─ThinkThink Class Library Package directory ││└─Traits systemTraits Directory │├─TPL System Template Catalog │├─. htaccess forApache Rewrite │├─. Travis. ymlCI definition file │├─Base. PHP Basic Definition file │├─Composer. JSONComposer definition file │├─Console. PHP Console Entry file │├─convention.php custom configuration file │├─helper.php helper function file (optional) │├─license.txt authorization note file │├─phpunit.xml unit test configuration file │├─readme .md readme file │└─start .php frame boot file ├─build.php auto-Generate definition file (reference) ├─< Span class= "Hljs-tag" >composer.json composer definition file ├─license.txt authorization description file ├─readmereadme file ├─think command line Portal file
5.0 of deployment Recommendations arepublic
Directories access content as a web directory, others are outside the web directory, and of course you have to modifypublic/index.php
The associated path in the. If this is not possible, remember to set access permissions for the directory or add protected files for the directory list.
router.php for PHP comes with webserver support for quick Test
Start command: php-s localhost:8888 router.php
5.0 version comes with a complete application directory structure and the default application portal file, which developers can adjust flexibly on this basis.
The above directory structure and name can be changed, especially the directory structure of the application, depending on your portal file and configuration parameters.
Because the architectural design of the ThinkPHP5.0.0 retains a lot of flexibility in the directory structure of the module, especially for directories that are used for storage, the above directory structure is intended for reference only.
THINKPHP5.0 directory Structure