This article continues to introduce the "free and open source" Openbiz framework, which is an application based on the Zend framework
Layer PHP framework. In the previous article "Openbiz implements PHP metadata programming", it was mentioned through metadata (Metadata)
To describe the ultimate description of business logic, the essence lies in the ultimate abstract idea of high cohesion and low coupling. This article I
We will explain how to achieve ultimate business logic reuse through this idea.
Openbiz middle layer built on Zend
This architectural approach is similar to the middle layer concept proposed by Java,
In the Openbiz system, in addition to data logic, there will be
In addition to advanced features such as memory management and object factories,
From its source code structure we see most of the external features
The implementation of business logic still relies on the bottom layer of Zend
To complete these logics, Openbiz itself
The work done is equivalent to the call logic and implementation
Logic is only visible to the middle layer.
What are the benefits of this? Isn't it unnecessary?
The core value of Zend is to integrate many underlying business logic
Editing to achieve business versatility at the code level. Translated into
To put it bluntly, Zend has indeed done a lot of low-level things,
But we still have to do a lot of preliminary work when using it
Initialization and setup work, which is done in the Zend box
The rack must definitely be completed by writing code.
So this way of writing code initialization reuses logic
As far as I'm concerned, it's better than nothing, but it's 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