为什么Zend Framework如此受欢迎? [英] Why is Zend Framework so popular?

查看:80
本文介绍了为什么Zend Framework如此受欢迎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是巨魔,我的目标不是发动火焰战争.我也不是要不尊重Zend框架的作者:它有很多出色的作品.但是...我有工作要做,而且我很难协调ZF的普及与使用它构建应用程序的现实.我真的很想知道其他人为什么使用Zend Framework.

I'm not a troll and my goal isn't to start a flame war; neither do I mean to disrespect the authors of the Zend Framework: there is a lot of fine work in it. But... I have a job to get done and I'm having a hard time reconciling the popularity of ZF against the reality of building apps with it. I would really like to know from others why they use Zend Framework.

我对PHP世界还很陌生,但是我已经用多种语言进行了很多编程.阅读了许多教程并在其中构建了一些应用程序之后,Zend Framework的一些核心功能对我来说就像是alpha代码.对我来说,以下一些基本弱点,尤其是似乎不堪重负,无法考虑使用它来部署应用程序-但一再建议将ZF作为领先的框架之一(如果不是 的话).

I am fairly new to the PHP world but I've done a lot of programming in many languages. After reading many tutorials and building a couple of apps in it, some core Zend Framework facilities feel like alpha code to me. For me the following fundamental weaknesses, among others, would seem too overwhelming to consider deploying apps with it - but over and over again ZF is suggested as one of the, if not the leading framework.

首先,我想说我发现ZF的许多功能都是可行的.路由工作正常,应该可以使用Layout功能(尽管与诸如JSP/ASP之类的模板系统非常不同),并且可以使用高速缓存功能. (例如验证)和视图逻辑(例如$ this-> headScript()-为什么我的控制器必须关心我的视图所需的js文件?)进入控制器,但这可能只是用法的问题,而不是不必要的框架的错误.

First let me say I find the much of ZF to be workable. Routing works pretty much as it should, the Layout facility is serviceable (though very different from templating systems such as JSP/ASP), as is the cache facility, etc. There seems to be a tendency in the community to stuff a lot of modeling (e.g. validation) and view logic (e.g. $this->headScript() - why should my controller have to care which js file my view requires?) into controllers but could be a matter of usage and not necessarily the framework's fault.

现在我在短时间内遇到了几个非常严重的(IMO)弱点.我不敢想象如果我继续与之建立联系,我将来会发现其他领域.

Now for a couple of really serious (IMO) weaknesses I've experienced in my short time with it. I shudder to imagine the other areas I will discover in the future if I continue to build with it.

1.表单布局
许多人似乎对缺乏对表单布局的控制感到不满.在构建一个简单的表单需要进行大量讨论的情况下,如何拥有一个流行的框架? 问题1 问题2 .

1. Form Layout
Many people seem to be unhappy with the lack of control over form layout. How can you have a popular framework where constructing a simple form requires so much discussion? Question 1 and question 2.

2.身份验证/授权
似乎没有人真正了解如何简单地执行常规身份验证/授权.人们(包括您的人在内)确实难以实现简单的访问控制.此外,该方法似乎依靠序列化来实现持久性,而不是依靠传统的数据库存储用户和权限. 一个令人困惑的示例和第二部分.这太辛苦了!

2. Authentication/Authorization
No one really seems to understand how to simply perform routine authentication/authorization. People [including yours truly] struggle with implementing simple access control. Further, the approach seems to lean on serialization for persistence, rather than traditional database storage of users and permissions. A confusing example, a proposal to enhance the facility, a tutorial - part I, and part II. This is too much work guys!

我的感知弱点不是真实的还是某种程度上不是问题?为什么或者为什么不?您为什么选择Zend Framework(或不选择)?您是否还发现其他痛苦的方面,以至于您想以其他方法放弃ZF?感谢您的意见.

Are my perceived weaknesses not real or somehow not a problem? Why or why not? Why did you choose Zend Framework (or not)? Are there other areas that you've found to be so painful that you want to dump ZF for a different approach? Thanks for your opinions.

推荐答案

因为他们擅长市场营销

Zend的创始人Andi Gutmans和Zeev Suraski是PHP的主要贡献者

Zend's founders Andi Gutmans and Zeev Suraski are key contributors to PHP

并且他们拥有php最完整的框架之一.

And they have one of the most complete framework for php.

当您考虑时;就像说:

我们的语言不如预期的那样高效,因此我们通过缓存创建了一个框架,从而使其运行起来更快"

"Our language isn't as performant as it could be, so we made a framework with caching that makes it faster"

  • Zend提供的大多数服务都可以完成 没有Zend.
  • 但是Zend的包装非常好 多合一"分发.
  • 他们提供认证和培训.
  • Most of what Zend offer, can be done without Zend.
  • But Zend's package is a very good "All in one" distribution.
  • They offer certifications and trainings.

这篇关于为什么Zend Framework如此受欢迎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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