从 Symfony 1.4 到 Symfony 2.0 需要付出的努力 [英] Effort required to go from Symfony 1.4 to Symfony 2.0

查看:26
本文介绍了从 Symfony 1.4 到 Symfony 2.0 需要付出的努力的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用 Symfony 1.4 编写的网站.这是我的第一个 symfony 网站,学习曲线对我来说有点陡峭.这是一个相当复杂的网站,如果它没有损坏,我不想修复它".

I have a website written in Symfony 1.4. It was my first symfony website and the learning curve was a bit steep for me. It is a fairly complicated website, and I don't want to 'fix it' if its not broken.

话虽如此,由于 sf 1.4 现在是遗留代码,我最终希望将该站点移植到 sf 2.0.事实上,我将在明年初重新启动该网站,我想知道我是否可以硬着头皮一次性将网站从 1.4移植"到 2.0.

Having said that, since sf 1.4 is now legacy code, I will eventually want to port the site to sf 2.0. as a matter of fact, I am relaunching the site early next year, and I want to know if I might just as well bite the bullet and "port" the site from 1.4 to 2.0 in one go.

所以,我需要知道以下问题的答案:

So, I need to know answers to the following:

  1. 我从 1.4 中已经知道的内容有多少适用于 2.0?
  2. 是否有任何 jobeet 或 askeet 类型的教程来展示如何使用 sf 框架构建整个应用程序?
  3. 我是不是很生气,想在一个多月内有效地移植一个大型网站(仅兼职工作?) - 即大爆炸"方法是最明智/唯一的方法吗?

推荐答案

如果它没有损坏,我不想修复它".

I don't want to 'fix it' if its not broken.

不要!

我是不是疯了,想在一个多月内有效地移植一个大网站(只做兼职?)

Am I mad, thinking of porting a big website in effectively just over a month (working only part time?)

是的,你是!:)

Symfony2 和 symfony 1.4 有很大的不同.我们不是在谈论 symfony 1.x 的一些更新,而是在谈论一个全新的框架.这真的就像在问从 symfony 1.4 切换到 Zend Framework/Kohana/Yii/CakePHP/etc... 有多难".

Symfony2 and symfony 1.4 are wildy different. We're not talking about some updates to symfony 1.x, we're talking about a brand new framework from the ground up. It's really like asking "How hard would it be to switch from symfony 1.4 to Zend Framework/Kohana/Yii/CakePHP/etc...".

我将一个项目(处于早期阶段)从 symfony 1.4 转移到 Symfony2,发现除了我对 MVC 模式的熟悉之外,没有太多(如果有的话)可以从 symfony 1.4 转移到 2.我们正在谈论关于新目录结构、新类、Doctrine 2、(很棒的)依赖注入容器等.

I moved a project (in its very early stages) from symfony 1.4 to Symfony2 and found that except for my familiarity of the MVC pattern, not much (if anything) else was transferable from symfony 1.4 to 2. We're talking about new directory structures, new classes, Doctrine 2, the (awesome) Dependency Injection Container, and more.

Symfony2 有自己的学习曲线,即使架构比 symfony 1.4 好,您仍将花费大量时间进行反复试验和阅读文档.

Symfony2 has its own learning curve, and even though the architecture is better than symfony 1.4, you will be spending a good amount of time going through trial and error and reading the docs.

Symfony2 很棒,我建议学习它,但要以可控的速度学习.网上有很多教程 - 准备好后,请查看它们并阅读官方的 Symfony2 文档和食谱.

Symfony2 is great, and I recommend learning it, but do so at a manageable pace. There's a number of tutorials online - check them out and go through the official Symfony2 docs and cookbook when you're ready.

这篇关于从 Symfony 1.4 到 Symfony 2.0 需要付出的努力的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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