Effort required to go from Symfony 1.4 to Symfony 2.0

前端 未结 3 1389
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 11:19

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

3条回答
  •  春和景丽
    2021-02-04 11:58

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

    Don't!

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

    Yes, you are! :)

    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...".

    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 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 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.

提交回复
热议问题