Home >Backend Development >PHP Tutorial >thinkphp autoload namespace custom namespace, thinkphpautoload_PHP tutorial

thinkphp autoload namespace custom namespace, thinkphpautoload_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:46:34873browse

thinkphp autoload namespace custom namespace, thinkphpautoload

In the process of using thinkPHP, some custom class libraries and third-party class libraries need to find a suitable location to place them. The system's default org folder is not very good and destroys thinkPHP's native directory.

I looked at the official manual and found that the namespace of the class library can be customized in the module or application configuration file.

However, one thing to note when using it is that your custom namespace name needs to correspond to your folder name and cannot be changed.

Then test it

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1032594.htmlTechArticlethinkphp autoload namespace custom namespace, thinkphpautoload In the process of using thinkPHP, some customized class libraries and third-party classes The library needs to find a suitable location to place it...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn