CodeIgniter Forums
How to upgrade from CI3 to CI4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: How to upgrade from CI3 to CI4 (/showthread.php?tid=75610)



How to upgrade from CI3 to CI4 - eboominathan - 02-26-2020

It is very hard to understand the upgrading documentation anyone know how to do upgrade from CI3 to CI4


RE: How to upgrade from CI3 to CI4 - donpwinston - 02-26-2020

You need to rewrite your app.


RE: How to upgrade from CI3 to CI4 - midav - 02-26-2020

You won’t get so quick to get updates from 3 to 4, you will have to 100% rewrite the application to 4 because everything changed in 4 and it doesn’t get so easy to transfer from 3 to 4.


RE: How to upgrade from CI3 to CI4 - bivanbi - 02-26-2020

(02-26-2020, 12:25 AM)eboominathan Wrote: It is very hard to understand the upgrading documentation anyone know how to do upgrade from CI3 to CI4

I could not (yet) find a good description of what and how, so I guess you need to figure out - re-learn CI if you will.
There are many breaking changes. You cannot just simply upgrade the framework and expect your app to work.
You can reuse your codebase, but with heavy refactoring.

(off topic, but the journey into CI4 changed my coding style for the better)


RE: How to upgrade from CI3 to CI4 - kenjis - 02-19-2021

CI4 is a brand new framework, so to learn CI4 is important.

But upgrading to CI4 is very hard, so I started to develop a tool to help upgrading.
https://forum.codeigniter.com/thread-78565.html

And I'm writing how to upgrade:
https://github.com/kenjis/ci3-to-4-upgrade-helper/blob/1.x/docs/HowToUpgradeFromCI3ToCI4.md