Home  >  Article  >  Backend Development  >  thinkphp LIB索引下的文件细分

thinkphp LIB索引下的文件细分

WBOY
WBOYOriginal
2016-06-13 11:21:17807browse

thinkphp LIB目录下的文件细分
请问各位有没有试过

在Action或者Model目录下面创建子目录
例如 Lib\Action\User\


------解决方案--------------------
那你就用他提供的分组功能就是了

5.6   模块分组
模块分组功能是为了更好的组织已有的模块,并且增加项目容量的一个有效机制。分组功能可以把以往的多项目合并到一个项目中去,这样一来,之前需要采用跨项目操作的地方,现在因为在一个项目中从而免去了不少麻烦,并且公共文件的重用也方便了,并且每个分组都可以有自己独立的配置文件、公共文件、语言包,在URL的访问上面也非常清晰。

应该就是你所想要的吧?
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