Introduction
This article continues to introduce the "free and open source" Openbiz framework, which is an application layer PHP framework based on the Zend framework. The previous article "Openbiz implements PHP metadata programming" mentioned that metadata (Metadata) is used to describe the ultimate description of business logic. The essence lies in the ultimate abstract idea of high cohesion and low coupling. In this article, we will explain how to achieve ultimate business logic reuse through this idea. The architecture of the Openbiz middle layer built on Zend is similar to the middle layer concept proposed by Java. In the Openbiz system, in addition to advanced features such as data logic, session memory management, and object factories, we can see from its source code structure It can be seen that the implementation of most external business logic still relies on the bottom layer of Zend, and the work done by Openbiz itself for these logics is equivalent to the middle layer between the calling logic and the implementation logic. What are the benefits of this? Isn't it unnecessary? The core value of Zend is to realize business versatility at the code level by integrating many underlying business logics. Translated into vernacular, Zend does do a lot of low-level things, but when using it, we must also do a lot of initialization and setup work, and these tasks must be completed by writing code in the Zend framework. So this way of writing code initialization is better than nothing in terms of reusing logic, but it is definitely not enough.
Statement:
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn