在CakePHP中重写php应用程序 [英] Rewriting a php app in CakePHP

查看:95
本文介绍了在CakePHP中重写php应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我很想使用php框架重写我的应用程序,因为我认为这将使人们更容易参与,以及改进应用程序的设计。

So, I'm very tempted to rewrite my application using a php framework, as I think it'll make it easier for folks to get involved, as well as improving the design of the app.

CakePHP看起来像是最好的PHP框架。有谁有任何经验吗?

CakePHP looks like the best of the PHP web frameworks. Does anyone have any experiences of it? What are the caveats I should consider going from handcoded PHP to using a framework?

推荐答案

不要依赖于你选择的框架,你必须知道的第一件事是:

Not depending on the framework you'll chose, the first thing you have to know is that :


  • 需要一些时间才能知道它

  • 因此,考虑到您需要一些时间才能完全投入使用 - )

  • it'll take some time for you to know it
  • you'll do crapping things, during that time ^^
  • so, take into account the fact it'll take some time before you are fully operational :-)

我认为这些点是估计得分最低的点:使用框架不需要太多时间。使用它以及充分的能力需要...好了,几个月,也许...这意味着,当你在项目的结尾,你会说:我应该重写所有我在第一次重写时学到的东西:-D

I think those points are the most under-estimated points : using a framework takes not much time... Using it well and to the full extend of its abilities takes... Well, a couple of months, maybe... Which means, when you are at the end of your project you'll say "I should rewrite that with all the stuff I learned while re-writing it the first time" :-D

这是什么意思:了解框架可以做什么,学习如何使用



然后,可能有一个小的应用程序没有最佳框架:一个框架可能非常适合一个项目,另一个框架可能最适合第二个不同的项目。


Then, there is probably no "best framework" : one framework may be very well suited for one project, and another one may be best for a second, different project.

我从来没有工作过用CakePHP;我真的很喜欢 Zend Framework 。但这是个人意见,O知道谁真的喜欢 symfony 的人;他们不是错的:symfony是伟大的 - 我没有错了^^

但是,我们有时同意一些事情;像 Doctrine (symfony的默认ORM层)这样的事实真是很棒的东西,我们倾向于使用在基于symfony和基于ZF的项目...

I've never worked with CakePHP ; I really like Zend Framework. But that is a personal opinion, and O know people who really like symfony ; they are not wrong : symfony is great -- and I am not wrong either ^^
Still, we sometimes agree on some things ; like the fact that Doctrine (default ORM layer of symfony) is really great stuff, and we tend to use in both symfony and ZF-based projects...



如果有动机,你可以看看许多关于框架的帖子。 ..这里有几个:


If motivated, you can take a look at many posts on SO, about frameworks... Here are a couple of those :

  • What PHP framework would you choose for a new application and why?
  • Is Symfony a good framework to learn?
  • What, in your mind, is the best PHP MVC framework?
  • Is Symfony a better choice than Zend for a web development shop (10+) because it is a full stack framework?
  • Best PHP framework for an experienced PHP developer?

祝你好运^^

是一个相当虚假和主观的问题^^)

这篇关于在CakePHP中重写php应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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