Upgrading older versions of CodeIgniter 4 to a modern version

I'm talking about how you can easily update an old project in C4 to a modern version. One of the problems we have is that the C4 team tends to change files like index.php, configurations, dependencies, which can be a mess if you have a very old project.

Before starting the section with Vue, which was the one I always had in mind for this course, CodeIgniter 4, that is to say, in practically all the courses in which I create a resapi, I always consume it through Vue, which I consider to be a very simple technology to learn, very easy to handle, with little knowledge it can be mastered, so to speak, that is to say, it has a very low learning curve if we compare it with Angular R and therefore it is the one I always work on in this type of courses in which we are working with web technologies. Another important point is that this video is going to be a bit generic, it is not going to be, as they say, so tied to the course. I want to talk about several little things and it is precisely for this reason that I am doing this intermediate class, if you want to see it that way, so well, do not expect me to develop anything or anything like that or that I am going to follow, as they say, a linear guideline, okay, here is the redundancy, so I have a while since I have not been working with Conader 4. I have been working hard with Laravella, which I consider to be a much better technology, although I already have some videos talking about it. so that we can do in C4 since everything has its market So to speak but why am I saying this because I have a lot of time and right now I am working on it I am updating some old courses at least leaving it here as who says in life and one of those was the C4 course that you can see here here I have the repository on github

Remember that all the projects are here although do not leave the link sometimes I get confused and do not leave the link here You simply have to look for the development book and here you can place the technology that I am with which you are working the course that you are following and here you have access to the source code you can download it here perfectly or you can chlorinate it you can do whatever you want so well in case you have any doubts note that I have about 3 years that I have not updated the course I have not done absolutely anything therefore more than anything more than this is that the version of the framework that is being used was quite obsolete the one that I had here referenced in the composer Jason that by the way I already overwrote it possibly I can see it here if I look for it although here I also have another project that is more or less the same date in 2022:

https://github.com/libredesarrollo?tab=repositories&q=codeigniter&type=&language=&sort=

At the time I'm recording this video we are in 2025. Note that there are some that are 4 years old, it's quite old, so it's probably because C4 came out as soon as it came out, that is, it came with it when we created the project. So here we can see the composer. js. Right now we are with php, the most modern version to date is 8.4, look what it is referencing here, 7 is practically obsolete, well I haven't seen this, I hope it doesn't disappoint me, but here the 7 should no longer be referenced, although I don't know if it has support there. I don't think so, as I told you, I haven't been very aware of the updates in coding nether and precisely it no longer has support for 7 because it's really not worth it, 8 has been on the market for a long time and working with 7 is gaining possible vulnerabilities in the framework, things that they surely don't want, so here you can see what I was telling you in these cases, what I recommend is that you have a very old project and you want to update it, this applies if you are developing for example in Laravel it is being developed in Flutter it is being developed in technologies in which with a command the project is created the modern project so to speak

Create a new project and copy the implemented code from the old one

From there you have the completely clean project, basically a project can be divided into two blocks using this type of frameworks or technologies, which is generated automatically by means of commands and so on and what we program, so that was what I did, I simply generated a new project in CodeIgniter 4 completely clean and I started to copy and paste the content that I created, which luckily in this type of frameworks, including the Arabic codin nader inclus and also flurer, which we have in the lip folder, we always have a folder in which we have 99.9% of the work, it's really like 95% of the work because some other folder is always touched, but we always have the controllers and other resources of that type there, which in this case is the app folder, here we have the views, the models, the filters, the controllers and the database, the migrations and the seeders, so we already have those folders and we simply have to copy and paste or dump them into the new project and that would be practically everything, so we save ourselves from having to follow tedious guides that are always found, especially in the C4 part, it always seems a little difficult to me. tedious which I'm going to see if any ulate or something like that appears yesterday they had to say, look you have to change such a thing in your file that has happened to me a lot especially with CodeIgniter 4 that I have been with for a while as I told you at the beginning that I have not worked with it but when I started I was working in beta and when they launched the framework I started this course and then went to production and they changed some things So I had to do a manual procedure, rename some files or more than the files it was the syntax if I remember correctly and things of that style then Many times those types of operations happen in which the syntax of the configurations or files of the framework have already changed so to avoid all that problem I simply delete it, create a new one, especially this one that has been around for so long that I have not updated it and copy paste I forget I think that this is much better because in the end as I told you if not you are going to have to update too many things manually.

- Andrés Cruz

En español

Andrés Cruz

Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter

Andrés Cruz In Udemy

I agree to receive announcements of interest about this Blog.