Thinkphp BASICS (1) and thinkphp Basics
The ThinkPHP directory is as follows. Application is the meaning of the Application (our code is put here), and Public is the meaning of Public files (mainly for front-end resource files such as js css ), the ThinkPHP file is the core package of the Framework (we generally do not operate on it ). This means that the background staff should write code in the Application directory.
Step 2: introduce the Application subdirectory
Common is the directory of our public functions or public configurations (public functions can be called at the Controller layer). Public configurations are system configurations such as configuring an upload path, in the Controller layer, we can use the C Function C ("config") to call the constants in it (the benefit is that changing one is equivalent to changing multiple layers in the Controller layer ).
The Home directory is the main place for us to write mvc. Model View Controller. For more information about the usage, see the following section.
Runtime is our cache file, so we don't need to worry about it