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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version
Useful JavaScript development tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Zend Studio 13.0.1
Powerful PHP integrated development environment