Welcome Guest, Not a member yet? Register   Sign In
Upgrade from 4.1.5 to 4.1.6
#1

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?
Reply
#2

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/insta...e_416.html
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(This post was last modified: 01-04-2022, 05:45 PM by kenjis.)

Yes,  the instructions are not clear.

I sent a PR to improve:
https://github.com/codeigniter4/CodeIgni...e57b453fcb

(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/CodeIgnit...pp-starter

And use upgrading tool:
https://packagist.org/explore/?query=cod...%20updates
Reply
#4

@sjender How about this?
https://codeigniter4.github.io/CodeIgnit...e_416.html
Reply
#5

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.
Reply
#6

@sjender Yes!
Reply
#7

(This post was last modified: 07-05-2022, 05:28 AM by SalinaSJames.)

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?
Reply
#8

(This post was last modified: 08-17-2022, 10:13 PM by SalinaSJames.)

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB