symfony vs cakephp [英] symfony vs cakephp

查看:104
本文介绍了symfony vs cakephp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

symfony和cakephp之间的区别是什么?

What is conceptually the difference between symfony and cakephp?

推荐答案

只是为了平衡这个线程,这就是为什么我喜欢symfony:

Just to balance out this thread, this is why I like symfony:


  • 使用PHP5

  • 它运行一些非常大的网站,例如 Yahoo!答案,美味和每日运动

  • 良好的文档。在网站上的jobeet教程是真棒。

  • 是您的所有功能。高度模块化;许多symfony组件自己工作。

  • 可让您选择推动教义作为您的ORM。 Doctrine真的很棒,很容易使用。

  • 您可以使用YAML或PHP定义您的模型,由您决定。有些人不喜欢配置文件,如果你想避开YAML,你真的可以限制他们的使用。

  • 更新的symfony cli(从1.2开始)是真棒。我同意abales,在这个版本之前,它是一个有点摇摇欲坠,但现在它是非常有据可查的,并采用可预测的格式。

  • 有很多,我的意思是很多,与ruby在rails上的相似之处,除了当然PHP不像Ruby(!)一样漂亮或灵活。但是,如果你和一个蛋糕开发者交谈,他们可能会说相反:)

  • symfony管理器生成器,这是从CRUD也存在于symfony中),是一个巨大的节省时间。使用您的数据模型,它将生成可自定义管理界面,其中包含列表视图(索引),创建和编辑页面。它不像生成源代码的基本crud,而是进入和修改它...你实际上可以定义每个字段的外观,你想要包括哪些字段,你可以对每个对象执行什么附加操作,等等。

  • uses PHP5
  • it runs some really big sites like Yahoo! Answers, delicious, and Daily Motion.
  • good documentation. the jobeet tutorial on the website is awesome. walks you straight through all of the features, and after you are done you feel like you can build anything.
  • is highly modular; many of the symfony components work on their own.
  • allows you to choose either Propel or Doctrine as your ORM. Doctrine is really great and easy to use.
  • you can define your models with YAML or in PHP, its up to you. Some people don't like configuration files, and you can really limit their use if you want to steer clear of YAML.
  • the updated symfony cli (as of 1.2) is awesome. I agree with abales, before this version it was a little wonky, but now it is very well documented and follows a predictable format.
  • there are a lot, and i mean a lot, of similarities with ruby on rails, except that of course PHP isn't quite as pretty or flexible as Ruby(!). But, if you talk to a cake developer, they will probably say the opposite :)
  • the symfony admin generator, which is a step up from CRUD (which also exists in symfony), is a huge time saver. Using your data model it will generate customizable admin interfaces complete with list views (index), create, and edit pages. It's not like basic crud where it generates the source and you go in and modify it... You actually can define how each field looks, which fields you want to include, what additional actions you can perform on each object, and so on.

从概念上说,区别在于:

Conceptually, I'd say the difference is this:


  • CakePHP具有较小的学习曲线。如果你从来没有使用过MVC框架,Cake将更容易拾起并在短时间内运行。

  • Symfony感觉有点大,不是说它很慢,但是有很多代码可以让你做很多真正高级的事情,当你需要to。

我能给出的最好的建议是快速尝试在两者中建立自己的简单数据模型,一些基本的接口,只是看看哪个适合你自己的编码风格最好。我认为这两个框架都有非常活跃和热情的用户社区,你不会后悔你的决定。

The best advice I can give is to quickly try to set up a your own simple data model in both, and experiment with some basic interfaces, and just see which fits your own coding style the best. I think both frameworks have very active and passionate user communities and you won't regret your decision either way.

这篇关于symfony vs cakephp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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