php模板之Phpbean的目录结构
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 程序的启动文件,比如自动转载类,初步过滤外部数据,初始化程序

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
