thinkphp the common configuration files and the configuration file combinations in their respective projects,
The examples in this article describe how the thinkphp public configuration files are combined with the configuration files in their respective projects. Share to everyone for your reference. The implementation method is as follows:
When using thinkphp, in the layout directory, you often use a single portal file corresponding to a project directory, but in the writing of the configuration file, in their own configuration file, often use duplicate configuration items, the use of this will put the public configuration items in a common directory.
Specific implementation methods:
Use the properties of the configuration file to return an array (), which can be defined in the configuration file in the respective project:
copy The code as follows: $config = Array (' = = ',) and then use the function to copy the code as follows: Return Array_merge (include './conf/ Config.php ', $config);
This allows you to use a common configuration file under the root directory
It is hoped that this article will be helpful to everyone's thinkphp framework design.
http://www.bkjia.com/PHPjc/917045.html www.bkjia.com true http://www.bkjia.com/PHPjc/917045.html techarticle thinkphp The common configuration files and the configuration file combinations in their respective projects, this article describes how to combine thinkphp public profiles with the configuration files in their respective projects. Share to the big ...