thinkphp 如何加载第三方类

WBOY
Release: 2016-06-06 20:12:44
Original
909 people have browsed it

thinkphp 如何加载第三方类

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

回复内容:

thinkphp 如何加载第三方类

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template