Php framework Phpbean shows that Phpbean has few core files, which is very relevant to phpbean design philosophy (focusing on performance and division of labor for cooperative development. The core of Phpbean is only to implement the basic MVC framework. it does not provide any redundant code and is very transparent to programmers.
The core file of Phpbean is described as follows (note that most of the core files can be used separately ):
1. base class of action. php action. Any other action must be its subclass. It implements a function: processing URL data.
2. Exception. php is an Exception handling class that directly inherits from Exception
3. Register Registry. php phpbean. For more information about registrars, see my translated article using the global variable http://www.phpobject.net/blog/read.php/77.htm in PHP
4. route processing by Router. php.
5. View. php tries to render the class.
6. DB/model. php and Db/mysql. php are mainly model layers. Currently, only MYSQL encapsulation is provided. The basic CURD is implemented in the model. it is not implemented for multi-table join query and other orm (mainly considering performance .) If complicated orm implementation is required for database layer encapsulation, zf db is recommended.
Currently, PHPBEAN provides the following optional library classes:
1. FILE library class. Provides file upload and download encapsulation classes.
2. Page paging class. JS and PHP paging classes.
3. IMG Image processing class. Currently, only verification code programs are provided.
4. Validate verification class. It can be used with the zend Framework verification class. For details, refer to how to extend ZF -- Validate extension http://www.phpobject.net/blog/read.php/110.htm
5. Lucene full-text search (coming soon ). The secondary development interface is provided based on zend lucene. May refer to the design of weblucene and nutch. For Chinese word segmentation, refer to full-text search using lucene of zend Framework-Chinese word segmentation
Http://www.phpobject.net/blog/read.php/113.htm
Phpbean strives to provide a highly flexible and transparent framework for programmers.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service