Original: thinkphp Framework Introduction (i)
First, the introduction of thinkphp
During the period there are questions about the thinkphp framework in learning welcome everyone to Exchange: qq:812231134
Mvc
M-model Model work: Responsible for the operation of the data
V-view view (template) Work: Responsible for the foreground page display
C-controller Controller (module) Work: Description function
Second, the thinkphp of the MVC corresponding directory
M project directory/application directory/lib/model
V project directory/application directory/TPL
C project directory/application directory/lib/action
Three #thinkphp core Document introduction
├─thinkphp.php Framework Entry File
├─common Framework Public File
├─conf Framework Configuration file
├─extend Framework Extensions Directory
├─lang Core Language Pack Directory
├─lib Core Class Library Directory
│├─behavior Core Behavior Class Library
│├─core Core base Class Library
│├─driver built-in driver
││├─cache built-in cache driver
││├─DB built-in database driver
││├─taglib built-in label driver
││└─template built-in template engine driver
│└─template built-in template engine
└─TPL System Template Directory
#项目目录结构及说明:
Home Foreground App Folder
├─common Project Common Files directory
├─conf Project configuration Directory
├─lang Project Language Directory
├─lib Project Class Library Directory
│├─action Action Class Library Directory
│├─behavior Behavior Class Library Directory
│├─model Model Class Library catalog
│└─widget Widget Class Library Directory
├─runtime Project Run-time catalog
│├─cache Template Cache Directory
│├─data Data Cache Directory
│├─logs Log file directory
│└─temp Temporary Cache Directory
└─TPL project template Catalog
Thinkphp Framework Introduction (i)