doumi9618 2010-05-25 19:36
浏览 12
已采纳

为什么要使用框架? 说服我,我应该找出Zend Framework并使用它[重复]

Possible Duplicate:
Why use a framework with PHP?

To begin with, I just can say that I have always been programming by my own. I use php mostly. So, can you explain me why I should learn Zend Framework or other framework? Why just don't write a pure code by own?

  • 写回答

4条回答 默认 最新

  • dou4064 2010-05-25 19:46
    关注

    I am a recent convert to Zend Framework and I can honestly say that after the first week or so of trudging around to figure out where to put what that I am able to develop much quicker using ZF than I was previously. I have thousands of lines of php code that I wrote for session management, form validation, you name it. In the cases where I decided to reuse that code it has been very easy to extend all the base classes.

    The repetitive, mundane tasks, the database handling and queries, the stuff you hate- it's already done for you, you don't have to do it every time all the time any more.

    I look at it like this: Even if you or I are personally smarter and better than every single person that is developing the framework, they have more collective talent than we ever can. They are able to formulate ideas, tests, and corner cases that we may never think of- especially on the safety front. I have no experience with Symfony or a lot of other PHP frameworks, but I can say that using ZF in my projects is already saving me a LOT of time.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊