Heim  >  Artikel  >  Backend-Entwicklung  >  php模板之Phpbean的目录结构_PHP教程

php模板之Phpbean的目录结构_PHP教程

WBOY
WBOYOriginal
2016-07-21 15:54:16798Durchsuche

app/ 目录是程序的主要目录。
App/actions 放置控制器文件,支持多级目录。如果是控制器,文件必须是***Action.php,如果是抽象类,必须是***.php。
App/models 放置模型 模型的文件名为***.php其中***必须和该文件中的模型类名一致
App/views  放置试图文件或者模板文件,任意级别目录

Config 配置文件,主要放置数据库配置信息,缓存配置,smtp配置之类。

Libs 库类及插件
Libs/phpbean phpbean的核心库类
Libs/plugins 插件之类,可以使Fckeditor 或者smarty
Libs/Zend zend的库类,如果你需要使用zend Framework的库类,可以放到这里。我比较常用zend Framework的lucene cache 和mail之类

Src 主要放置程序的图片、JS、CSS等

Tmp/cache 访问缓存文件
Tmp/uploadfiles 放置上传文件

Index.php程序的单一入口,主要进行路由转发
Startup.php 程序的启动文件,比如自动转载类,初步过滤外部数据,初始化程序

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/318526.htmlTechArticleapp/目录是程序的主要目录。 App/actions放置控制器文件,支持多级目录。如果是控制器,文件必须是***Action.php,如果是抽象类,必须是***.p...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn