Home >Backend Development >PHP Tutorial >Thinkphp basic introduction (1), thinkphp basic introduction_PHP tutorial
The ThinkPHP directory is as follows. Application, as the name suggests, means application (our code is placed here), Public means public files (mainly for front-end resource files such as JS CSS), and ThinkPHP files are the core packages of the framework (we generally do not operate it). This means that the code written by our backend personnel 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 can be called at the Controller layer). Public configurations are some system configurations, such as configuring an upload path in it. We can use C functions at the Controller layer. C("config") calls the constants inside (the advantage is that changing one place is equivalent to changing multiple places in the Controller layer).
The Home directory is the main location where we write mvc. Model View Controller. Please see the next section for specific usage
Runtime is our cache file, we don’t need to worry about it