ThinkPHP5 the namespace that was introduced, unlike the previous version. It also changed in the file directory.
Project App Deployment Catalog
├─composer.json Composer Definition File
├─readme.md README File
├─build.php auto-Generate definition file (reference)
├─license.txt Authorization Note File
├─application application directory (can be set)
│├─common Public Module catalog (can be changed)
Runtime directory for │├─runtime applications (writable, can be set)
│├─module Module Catalog
││├─config.php Module Configuration file
││├─common.php Module Function file
││├─controller Controller Directory
││├─model Model Catalog
││├─view View Catalog
││├─ ... More Class Library Catalogs
│├─common.php Public Function file
│├─route.php Routing configuration file
│├─database.php Database configuration file
│└─config.php Public configuration file
├─public Web Deployment directory (external access directory)
│├─index.php Application Portal File
│├─.htaccess for Apache rewrite
│└─router.php Quick test file (for bringing webserver)
├─thinkphp Framework System Catalog
│├─library Framework Class Library Directory
││├─behavior Behavior Class Library Directory
││├─think Think class Library package directory
││├─org Org Class Library package directory
││├─traits System Traits Directory
││├─ ... More Class Library Catalogs
│├─extend Extension Class Library directory (customizable)
│├─vendor third-party class library catalogs
│├─mode Application Mode Directory
│├─TPL System Template Directory
│├─base.php Basic Files
│├─convention.php Framework Convention configuration file
│└─start.php Framework Boot File
You can change the program's entry file by modifying the config.php file under Application.
config.php
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/83/F1/wKioL1eAzVqydI08AAAxROBMWXI774.png-wh_500x0-wm_3 -wmp_4-s_3518828956.png "title=" 3.png "alt=" Wkiol1eazvqydi08aaaxrobmwxi774.png-wh_50 "/>
The comments in the file are very clear. Just a few points to note here, the default module location in the program is application. Say that if you want to change the location of the default module, you need to place the template file under the application file, of course, this position can be changed.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/83/F1/wKioL1eAzLyDYBkZAAANpcJFwpM994.png-wh_500x0-wm_3 -wmp_4-s_2738635792.png "title=" 1.png "alt=" Wkiol1eazlydybkzaaanpcjfwpm994.png-wh_50 "/>
It is important to note that you specify the controller and operation name. Because of the name space reason.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/F1/wKioL1eAzQOxwbEwAAAZpOazYbY361.png-wh_500x0-wm_3 -wmp_4-s_595264668.png "title=" 2.png "alt=" Wkiol1eazqoxwbewaaazpoazyby361.png-wh_50 "/>
These two locations need to correspond to the controller and operation names in the config.php. The class name must be the same as the file name.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/83/F1/wKioL1eAzYKDYDOYAAAlZi9mFgk872.png-wh_500x0-wm_3 -wmp_4-s_1480128301.png "title=" 4.png "alt=" Wkiol1eazykdydoyaaalzi9mfgk872.png-wh_50 "/>
This article is from the "7985588" blog, please be sure to keep this source http://7995588.blog.51cto.com/7985588/1813852
ThinkPHP5 Modifying the default program entry