Home >Backend Development >PHP Tutorial >thinkphp 如何加载第三方类

thinkphp 如何加载第三方类

WBOY
WBOYOriginal
2016-06-06 20:12:44931browse

thinkphp 如何加载第三方类

第三方类应该放在哪个文件夹里,然后怎么加载它

回复内容:

thinkphp 如何加载第三方类

第三方类应该放在哪个文件夹里,然后怎么加载它

放 Vendor 然后用 Vendor("文件夹.文件"); 引入

你可以在Common分组里面添加一个Org文件夹,类文件放入进去,调用:demo = new \Common\Org\demo();目前我的分组就是这个样子的

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