如何使用PHP构建n层Web架构? [英] How to build n-layered web architecture with PHP?

查看:108
本文介绍了如何使用PHP构建n层Web架构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理3层架构PHP网站。

I'm dealing with the 3-tier architecture PHP website.

现在我需要将其重新设计为suрроrt分布式n层架构。经过长时间的研究,我找到了这个解决方案:业务逻辑应该分为表示层和纯业务逻辑层,以允许n层架构(用户界面,表示层,b.logic和数据层)。我决定只使用РНР进行演示。在业务逻辑中,我想使用J2ЕЕ实现技术,而不是在PHP中实现它,因为J2EE可以提供更重要的容器服务,这对于业务逻辑,其稳健性,可维护性和不同的关键业务操作至关重要。

Now I need to redesign it to suрроrt distributed n-tier architecture. After long hours of research i came to this solution: business logic should be separated into presentation and purely business logic tier to allow for n-layer architecture (user-interface,presentation tier,b.logic and data tier). I have decided to use РНР just for the presentation. In the business logic I want to use J2ЕЕ implementation technology instead of implementing it in PHP because J2EE can provide much more essential container services which are essential for business logic, its robustness, maintainability and different critical business operations.

从您的专业角度来看,这是否是重新设计原始网站以考虑网站细节及其运营重要性的n层架构的好方法?

From your professional point of view, does it sound like a good way of redesigning the original website to allow for n-tier architecture considering the specifics of the website and the criticality of its operations?

推荐答案

您可以使用 Zend Framework 。它遵循MVC架构,并且具有适用于您的服务的Zend_Soap组件。当您可以在PHP中保留所有应用程序时,没有理由构建一些多语言应用程序。你为什么要如此糟糕地使用Java?

Everything you want to do is possible with Zend Framework. It follows an MVC architecture and has things like the Zend_Soap component for your services.There is no reason to build some multi-language application when you can keep it all within PHP. Why do you want to use Java so badly?

这篇关于如何使用PHP构建n层Web架构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆