我有一个旧的 CodeIgniter 2 项目。
如何在不更改任何代码或功能的情况下将其更新/升级到 CodeIgniter 版本 4?
可能吗?
最佳答案
从 2 升级到 3 是没有意义的,因为最终您将无法能够顺利地从 3 升级到 4。
这是一个糟糕的时间和劳动力成本计算,建议您使用两个(2 -> 3 -> 4)框架版本(如果您可以有效地直接/直接迁移到最新版本)。单独升级框架会消耗时间和人力,并且会带来一系列错误。
请接受您当前的情况,直接将整个项目重写为 CodeIgniter 4 可能是必要的。尽管如此,您也许可以保存旧项目的某些部分。
CodeIgniter 4 is a rewrite of the framework and is not backwards compatible. It is more appropriate to think of converting your app, rather than upgrading it. Once you have done that, upgrading from one version of CodeIgniter 4 to the next will be straightforward.
There is no 12-step checklist for upgrading. Instead, start with a copy of CodeIgniter 4 in a new project folder, however you wish to install and use it, and then convert and integrate your app components.
CodeIgniter 3处于维护模式,接收主要只是安全更新。
关于php - 如何将 CodeIgniter 2 项目转换为 CodeIgniter 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71522820/