thinkphp Framework directory structure
File path |
File description |
\index.php |
Entry file |
\application |
Application directory |
\public |
Resource file directory |
\thinkphp |
Framework Core Catalog |
\application Directory Structure (application directory, save all application files)
File path |
File description |
\application\common |
Apply Public Module |
\application\common\common
|
Apply common functions directory to provide common functions for all modules under the application directory |
\application\common\conf
|
Apply Public Profile directory to provide public configuration for all modules in the application directory |
\application\home
|
thinkphp Framework default generated home module |
\application\home\conf
|
Module configuration file directory, providing configuration information for the home module |
\application\home\common
|
module function Public directory, which provides common functions for the home module |
\application\home\controller
|
Module Controller Directory |
\application\home\model
|
Module Model Catalog |
\application\home\view
|
Module View Catalog |
\application\runtime
|
Run-time Catalogs |
\application\runtime\cache
|
Template Cache Directory |
\application\runtime\date
|
Data Catalog |
\application\runtime\logs
|
Log directory |
\application\runtime\temp
|
Cache Directory |
Framework Core Directory structure
File path |
File description |
\thinkphp\common |
Core Public Function Directory |
\thinkphp\conf
|
Core configuration Directory |
\thinkphp\lang
|
Core Language Pack Directory |
\thinkphp\libary
|
Core Class Library Directory |
\thinkphp\libary\think
|
Core thinkphp Class Library package directory |
\thinkphp\libary\behavior
|
Behavior Class Library Directory |
\thinkphp\libary\org
|
Org Class Library Package directory
|
\thinkphp\libary\vendor
|
Third-party class library catalogs |
\thinkphp\mode
|
Framework Application Pattern Catalog |
\thinkphp\tpl
|
System Templates Directory |
\thinkphp\thinkphp.php
|
Thinkphp Framework Entry Directory
|
The \thinkphp\conf directory is the core configuration directory for thinkphp, which contains thinkphp custom profiles, database connection information, thinkphp default settings, URL access mode, and so on, in this custom configuration file.
\thinkphp\libary\think is the core thinkphp class Library package directory, which contains App.class.php (Application Class), Controller.class.php (Controller base class), Model.class.php (model Class), View.class.php (view Class), etc. thinkphp run the required base class files.
\thinkphp\libary\vendor is a three-party class library directory that contains a number of third-party feature class files, such as the Smarty template engine.
From for notes (Wiz)
thinkphp directory Structure