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

thinkphp中命名空间的奇奇事

WBOY
Release: 2016-06-13 12:16:58
Original
787 people have browsed it

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

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

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