Home  >  Article  >  Backend Development  >  Directory structure of Phpbean in php template_PHP tutorial

Directory structure of Phpbean in php template_PHP tutorial

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

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

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

Libs library classes and plug-ins
Libs/phpbean phpbean’s core library class
Libs/plugins plug-ins and the like, you can use Fckeditor or smarty
Libs/Zend zend’s library class, if you Library classes that need to use zend Framework can be placed here. I often use zend Framework’s lucene cache and mail

Src mainly places the program’s images, JS, CSS, etc.

Tmp/cache accesses cache files
Tmp/uploadfiles places upload files

A single entrance to the Index.php program, mainly for routing and forwarding
Startup.php program startup file, such as automatic reprinting classes, preliminary filtering of external data, and initialization of the program

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318526.htmlTechArticleapp/ directory is the main directory of the program. App/actions places controller files and supports multi-level directories. If it is a controller, the file must be ***Action.php. If it is an abstract class, it must be ***.p...
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