Symfony 应用程序从 1.1 升级到 1.2 是多么轻松

发布于 2024-07-16 05:06:56 字数 190 浏览 5 评论 0原文

我目前正在运行 PHP 版本 5.1.6 的服务器上开发一个系统,因此我被迫在当前环境中使用 Symfony 1.1。 我计划在不久的将来将应用程序从 1.1 迁移到 1.2,我想知道是否有人有这方面的经验? 我曾尝试将系统从 1.0 迁移到 1.1,但这是一个巨大的痛苦。

从 Symfony 1.1 迁移到 1.2 的人感觉如何?

I am currently developing a system on a server running PHP version 5.1.6 thus I am forced to use Symfony 1.1 in the current environment.
I am planning to migrate the application from 1.1 to 1.2 in the somewhat near future and I was wondering if anyone has any experience with this?
I have attempted to migrate a system from 1.0 to 1.1 and that was a major pain in the rear.

How has it been for anyone out there migrating from Symfony 1.1 to 1.2?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

琉璃繁缕 2024-07-23 05:06:56

我的两分钱是,这完全取决于你的申请中有多少表格,这是迄今为止最痛苦的部分。 Symfony 1.2 有一个全新的表单系统。

你总是可以做 compac10 = true 或其他......以使你的旧代码兼容,..

Symfony 1.2 确实有许多新的有用的小部件,..并且 propel 1.3 是一个重大改进,修复了我实际遇到的一些错误。

My 2 cents is that it all depends on how many forms you have in your application, that was by far the most painful part. Symfony 1.2 has an entirely new form system.

you can always do compac10 = true or whatever ...to make your old code compatible,..

Symfony 1.2 does have many new useful widgets,..and propel 1.3 is a significant improvement, fixed some bugs that I was actually running into.

我还不会笑 2024-07-23 05:06:56

如果您没有在 Propel 中使用自定义 SQL 查询(即手动水合),那么这应该相当容易,因为 Propel 1.3 切换到了 PDO。
我将 1.1 应用程序迁移到 1.2,除了运行自动升级脚本之外,我什么都不做。

It should be fairly easy if you didn't use custom SQL queries with Propel (i.e. manual hydratation) as Propel 1.3 switches to PDO.
I migrated an 1.1 app to 1.2 and I had nothing to do except running the automatic upgrade script.

你在看孤独的风景 2024-07-23 05:06:56

对我来说,迁移到 1.2 相当轻松。 升级脚本应该完成所有艰苦的工作。

如果您使用过 1.2(默认使用 symfony 1.0.x 和 1.1.x),最大的问题将是迁移到 propel 1.3。 如果您之前使用过 propel 1.3(使用 sfPropelPlugin)或 Doctrine 应该不会有任何问题。

另一种方法是将管理员生成的模块移植到新的管理员生成器中,但在 1.2 中,旧模块目前仍然可以使用。

上面列出的是1.2中最大的变化。

我喜欢 1.2,因为它有很多新的很酷的东西(REST 路由、新的管理生成器、一些小修复等)

For me, migration to 1.2 was fairly painless. The upgrade script should do all hard work.

The biggest problem will be migrating to propel 1.3 if you have used 1.2 ( default with symfony 1.0.x and 1.1.x). If you were using propel 1.3 before ( with sfPropelPlugin) or Doctrine there shouldn't be any problems.

Another one will be porting admin generated modules to new admin generator, but in 1.2 the oldones still work for now.

Those listed above are the biggest changes in 1.2.

And I love 1.2 for it has lots of new cool stuff ( REST routing, new admin generator, some minor fixes etc.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文