CodeIgniter Forums
Upgrade from 4.1.5 to 4.1.6 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Upgrade from 4.1.5 to 4.1.6 (/showthread.php?tid=80935)



Upgrade from 4.1.5 to 4.1.6 - sjender - 01-04-2022

Hi All,
My newyears resolution is to keep up with CI updates.
This will be my first manual upgrade and I would like to do it correct.
The upgrade page tells me that only these files are changed:

  • Code:
    app/Config/Filters.php
  • Code:
    app/Config/Mimes.php
  • Code:
    app/Config/Security.php
  • Code:
    app/Config/Toolbar.php
  • Code:
    app/Views/errors/html/error_exception.php
But when I check system/CodeIgniter.php, there are changes as well (not only CI_VERSION).

I thought it was safe to just copy  the changed files, but I'm afraid I will miss out on other files.
I don't want to just copy paste everything, because my config folder contains some configs which should be reviewed manualy.
What's best practice in this situation?


RE: Upgrade from 4.1.5 to 4.1.6 - includebeer - 01-04-2022

Maybe the instructions are not clear enough, but these are the changes in the project space (your app, not the framework). You should always replace your system directory with the new version.

Quote:This is a list of all files in the project space that received changes; many will be simple comments or formatting that have no effect on the runtime

https://codeigniter.com/user_guide/installation/upgrade_416.html


RE: Upgrade from 4.1.5 to 4.1.6 - kenjis - 01-04-2022

Yes,  the instructions are not clear.

I sent a PR to improve:
https://github.com/codeigniter4/CodeIgniter4/pull/5542/files#diff-6c321e87b36a86b1ed107bc9f6a26a50466f2ea6e325d66491098ce57b453fcb

(01-04-2022, 09:05 AM)sjender Wrote: What's best practice in this situation?

I'm not sure this is the best for you.
But I use composer and install CI4 with appstarter.
https://codeigniter4.github.io/CodeIgniter4/installation/installing_composer.html#app-starter

And use upgrading tool:
https://packagist.org/explore/?query=codeigniter4%20updates


RE: Upgrade from 4.1.5 to 4.1.6 - kenjis - 01-04-2022

@sjender How about this?
https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_416.html


RE: Upgrade from 4.1.5 to 4.1.6 - sjender - 01-05-2022

Thanks!

So I need to replace the system directory as well as some project space files mentioned on the upgrade page.
That's all I needed to know.

I know I have to check the project space files to be sure I don't overwrite any possible manual settings.


RE: Upgrade from 4.1.5 to 4.1.6 - kenjis - 01-05-2022

@sjender Yes!


RE: Upgrade from 4.1.5 to 4.1.6 - SalinaSJames - 02-09-2022

When they say PHP 8 is fully supported, does that only mean it works on PHP 8, or also that it's been reworked to fully utilize the value that PHP 8 shagle voojio adds?


RE: Upgrade from 4.1.5 to 4.1.6 - SalinaSJames - 03-25-2022

I'm happy to have a plurality of options, which drives innovation and allows each framework to suit different use-cases. I believe CodeIgniter has focused on ease of use, and perhaps that is its main selling point. People are perfectly free to go with Laravel/Symfony/Slim/etc, but choice is a shagle omegle good thing.