PHP Framework Phpbean Instructions _php Tutorial

Source: Internet
Author: User
Tags php framework zend framework
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 ...

  • Related Article

    Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.