关于thinkphp的有关问题
Jun 13, 2016 pm 12:26 PM
关于thinkphp的问题!
用了一段时间TP,知道在框架application下面Home里的文件命名空间都是namespace Home\xx,admin的是namespace Admin,我在跟application同级的目录里(根目录下)建立一个framework专门来放ajax请求的文件,那些文件的命名空间是怎样的啊?framework跟ThinkPHP文件都在根目录下,求教这个命名空间应该怎么写!我想在Framework中使用TP里的方法,可以实现吗,小白求指教!
------解决思路----------------------
试试 namespace \framework\xxx

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution: Your organization requires you to change your PIN

10 Ways to Adjust Brightness on Windows 11

How to turn off private browsing authentication for iPhone in Safari?

Win10/11 digital activation script MAS version 2.2 re-supports digital activation
![How to Hide and Unhide Folders on Windows 11 [3 Ways]](https://img.php.cn/upload/article/000/887/227/169542942766265.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
How to Hide and Unhide Folders on Windows 11 [3 Ways]

There are several versions of thinkphp
