Phpbean's core files are very few, and this is very relevant to Phpbean's design ideas (emphasizing performance and division of Labor). The core of Phpbean is simply to implement the basic MVC framework and not provide any superfluous code, which is very transparent to the programmer.
Phpbean's core document is described below (note that most of the core files can be used alone):
1. The base class of action.php action. Any other action must be a subclass of it. Inside it implements a function: The processing of the URL data.
2, exception.php is the exception processing class, direct inheritance and Exception
3, registry.php Phpbean of the Registrar. For the Registrar, you can refer to my translated article using global variables in PHP http://www.phpobject.net/blog/read.php/77.htm
4, router.php route processing.
5. view.php attempts to render the class.
6, db/model.php and db/mysql.php are mainly model layers. Currently only available in the MySQL package. The basic curd is implemented in the model. There are no implementations for ORM (mainly considering performance). For the encapsulation of the DB layer, it is recommended to use ZF DB if complex ORM implementations are required.
Currently the optional library classes offered by Phpbean are:
1, File Library class. File upload, download package classes are provided.
2, page paging class. JS and PHP paging classes.
3, IMG image processing class. Currently, only CAPTCHA programs are available.
4, Validate authentication class. Supports the use of validation classes with the Zend Framework. You can refer to how to extend the zf--validate extension http://www.phpobject.net/blog/read.php/110.htm
5, Lucene full-text search (coming soon). It is a two-time development interface based on Zend Lucene. may refer to the design of Weblucene and Nutch. For Chinese word segmentation, you can refer to Lucene using Zend Framework for full-text search-Chinese word segmentation
Http://www.phpobject.net/blog/read.php/113.htm
Phpbean is committed to providing a highly flexible, highly transparent framework for programmers.
http://www.bkjia.com/PHPjc/318529.html www.bkjia.com true http://www.bkjia.com/PHPjc/318529.html techarticle Phpbean's core files are very few, and this is very relevant to Phpbean's design ideas (emphasizing performance and division of Labor). The core of Phpbean is simply to implement the basic MVC framework and not provide ...