thinkphp Basic Primer (1), thinkphp basics
Thinkphp directory is as follows, application as the name implies is the meaning of the application (our code here), public is the meaning of common files (mainly JS CSS, such as front-end resource files), thinkphp file is the framework of the core package (we generally do not operate it). It means that our backstage personnel write code should be written in the application directory.
The second step is to introduce the application subdirectory
Common is our public function or the directory of public configuration (public function means can be called at the controller layer), public configuration is some system configuration such as the configuration of a upload path, we can use C function c ("config") in the controller layer The constant called to the inside (the advantage is that changing one is equivalent to changing the controller layer in multiple places).
The home directory is the main place where we write MVC. Model View Controller. See section below for specific usage
Runtime is our cache file, we don't have to worry about him.
http://www.bkjia.com/PHPjc/1110979.html www.bkjia.com true http://www.bkjia.com/PHPjc/1110979.html techarticle thinkphp Basic Primer (1), thinkphp Basic Primer thinkphp directory is as follows, application as the name implies the meaning of the application (our code here), public is the meaning of common files ...