从Kohana 2升级到最新的3.2版本 [英] Upgrade from Kohana 2 to latest 3.2 version

查看:89
本文介绍了从Kohana 2升级到最新的3.2版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目写于2009年,基于Kohana 2.3.4,该项目仍处于活动状态,并且有时需要进行修复/创建整个新功能.因为不再支持Kohana 2,并且不推荐使用整个应用程序堆栈,所以我研究了(几次:)从Kohana 2升级到3的可能性.我已经知道已经进行了很多更改,这不是简单的升级,这更像是重写应用程序.

I have project written in 2009 and based on Kohana 2.3.4, this project is still active and time to time there is requirement to make fix/create whole new feature. Because Kohana 2 is no longer supported and whole application stack is quite deprecated I have investigated (few times :) possibilities how to upgrade from Kohana 2 to 3. I already know there has been quite a lot of changes and it isn't simple upgrade, it's more like rewrite of application.

有人将Kohana 2升级到3有真正的经验吗?我已经在文档中找到了升级"指南,并且在论坛中发现了一些关于升级的模糊表述.我只是想知道如果我决定升级整个应用程序,以及是否有真正重要的特权和优势可以帮助mi将来开发该应用程序,我该期望些什么.

Does anybody have real experience with upgrading Kohana 2 to 3? I've found 'upgrade' guides in documentation and few vague statements about upgrade in forums. I just wonder what should I expect in case I would decide to upgrade whole application and if there are really important perks and advantages that will help mi in future of the app.

感谢您的咨询!

推荐答案

我还在2008-9年度与Kohana 2.3.4一起开发了一个项目.最近,我和您自己都在想为什么要升级.我的动机是:

I also developed a project with Kohana 2.3.4 in 2008-9. And recently, I was wondering as well as yourself, why I would upgrade. My motivations were :

  • 要加入我的项目的新开发人员不必进入档案即可获得框架2.3.4(这是不好的宣传)
  • 维护框架(3.2)代码并经常进行更新
  • 社区更能够为Kohana 3.2提供帮助
  • 社区为Kohana 3.2创建了更多模块

不幸的是,升级时间很长:这将完全重写代码(或代码的90%).一切的语法更改:路由,模型,目录结构,控制器..

Unfortunately, upgrading is very long : it will be a total rewriting of the code (or 90% of it). Syntax changes for everything : routes, models, directory structure, controller..

在我最终升级了项目(这是一条痛苦的道路)之后,我可以说3.2的修改和功能提供了一种完全不同的愿景/理念(并非所有人都会认可),这是非常了不起的,我认为这更有趣跟...共事.

After I finally upgraded my project (it was a painful road), I can say that modifications and features of 3.2 offer a complete different vision/philosophy (not everyone will approve) that is remarkable and, in my opinion, more interesting to work with.

然后,是的,我建议升级.而且,如果您需要帮助,则应使用IRC:)

Then, yes, I'd recommend to upgrade. And, if you need help, you should go onto IRC :)

这篇关于从Kohana 2升级到最新的3.2版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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