I’ve been doing thinkphp development for over a year now, and how should I put it — I’m pretty lousy at it…… I’ve always used version 3.0 or above, checking the manual, debugging, typing code. Then I happened to come across the 2.0 manual and was left completely speechless 2.0’s manual is all fundamentals; I had been using thinkphp with my head down the whole time, so today I sat down and read a good part of the configuration for config.php. Here is the reference the official docs give
Convention configuration
Convention over configuration is an important idea in ThinkPHP: the system has a built-in convention configuration file (located in Think\Common\convention.php) that gives default values to common parameters based on how most people use them. So for an application project’s configuration file, you usually only need to configure the parameters that differ from the convention configuration or that are new; if you go entirely with the defaults, you may not even need to define any configuration file at all. (If you want to see the detailed settings list in the convention configuration, refer to the configuration reference section in the appendix.)
Reading this, I couldn’t stay calm: so thinkphp does ship a ready-made reference configuration, and the pit I’d fallen into was a deep one. No wonder the colleagues I used to develop with always left debug mode on when their projects went live instead of turning it off…… I went digging and found that in 2.0 it’s actually in the Common core directory, and that plenty of other documents are sitting in there too……
But in 3.0 and above it really is in the conf directory
These settings basically cover every aspect; I also found that some of the methods tp already wraps up are quite good — I just never used them much, and went off and wrapped everything myself……

