The ThinkPHP directory is as follows. Application, as the name suggests, means application (our code is placed here), Public means public files (mainly putting front-end resource files such as JS CSS), and ThinkPHP files are the core packages of the framework (we generally put them here) Do not operate it). This means that the code written by our backend staff should be written in the Application directory
The second step will introduce the Application subdirectory
Common is the directory of our public functions or public configurations (public functions mean that they are in the Controller layer) can be called), the public configuration is some system configuration, such as configuring an upload path in it. We can use the C function C ("config") in the Controller layer to call the constants in it (the advantage is that changing one place is equivalent to changing multiple Controller layers. place).
The Home directory is the main location where we write mvc. Model View Controller. See the next section for details on usage
Runtime is our cache file, we don’t need to worry about it
The above introduces the basic introduction to thinkphp 1, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.