Home > Backend Development > PHP Tutorial > 关于thinkphp的问题!

关于thinkphp的问题!

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

用了一段时间TP,知道在框架application下面Home里的文件命名空间都是namespace Home\xx,admin的是namespace Admin,我在跟application同级的目录里(根目录下)建立一个framework专门来放ajax请求的文件,那些文件的命名空间是怎样的啊?framework跟ThinkPHP文件都在根目录下,求教这个命名空间应该怎么写!我想在Framework中使用TP里的方法,可以实现吗,小白求指教!


回复讨论(解决方案)

试试 namespace \framework\xxx 

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