SoFunction
Updated on 2025-04-09

Phpbean directory structure of php template

The app/ directory is the main directory of the program.
App/actions Position controller files and supports multi-level directories. If it is a controller, the file must be ***, and if it is an abstract class, it must be ***.php.
App/models Place the model The file name of the model is ***.php, and *** must be consistent with the model class name in the file.
App/views  Place the attempt file or template file, directory at any level

Config configuration file, mainly placing database configuration information, cache configuration, smtp configuration, etc.

Libs library classes and plug-ins
Libs/phpbean The core library class of phpbean
Libs/plugins plug-ins, etc., can make Fckeditor or smarty
Libs/Zend zend library class. If you need to use the zend Framework library class, you can put it here. I often use lucene cache and mail from zend Framework

Src mainly places the program's pictures, JS, CSS, etc.

Tmp/cache access cached files
Tmp/uploadfiles Place upload files

A single entry for the program, mainly for routing and forwarding
The program's startup file, such as automatic reprinting, initial filtering of external data, and initializing the program