Mapping analysis of common function path and configuration item path in thinkphp, thinkphp function
This paper analyzes the mapping of common function path and configuration item path in thinkphp. Share to everyone for your reference. The specific analysis is as follows:
In thinkphp, when using public functions (a single portal file corresponds to a separate project), a common function file can be written in the common folder. Files written with the file name common.php are automatically loaded by the system and will not be loaded automatically if written in other function names, but there are two processing mechanisms
1. Load the load (' @.function ') manually at the time of use, and the file will be loaded manually. The @ representative is under the common folder under this project.
2. Configure the copy code code in the configuration file as follows: ' load_ext_file ' = ' function '
In thinkphp __publicc__ This is not a constant, but a mapping, the default is in the root directory of the public directory, can be modified in the configuration file, copy code as follows: ' Tmpl_parse_string ' = _ _root__. ' Public '
It is hoped that this article will be helpful to everyone's thinkphp framework design.
http://www.bkjia.com/PHPjc/916056.html www.bkjia.com true http://www.bkjia.com/PHPjc/916056.html techarticle mapping analysis of common function path and configuration item path in thinkphp, thinkphp function This paper analyzes the mapping of common function path and configuration item path in thinkphp. Share to everyone ...