Home  >  Article  >  Backend Development  >  thinkphp中命名空间的奇奇事

thinkphp中命名空间的奇奇事

WBOY
WBOYOriginal
2016-06-13 12:16:58740browse

thinkphp中命名空间的奇怪事
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {

上面这段源码中红色部分的路径为啥要在think/library/think中呢
不理解的是它为啥多了绿色部分
------解决思路----------------------
命名空间的类文件查找路径可以自定义的啊

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