Welcome Guest, Not a member yet? Register   Sign In
update the framework to the latest version
#1

I am in the process of updating my CodeIgniter framework from version 4.1.3 to 4.1.4. The process requires me to update incrementally, step by step for each version. I initially attempted to use the "composer update" command, however, it only updated the libraries and not the framework itself. As a result, I am searching for a solution to effectively update the framework to the latest version.
Reply
#2

(This post was last modified: 05-08-2025, 12:28 PM by captain-sensible. Edit Reason: the usual suspects )

for chnages seee: https://codeigniter.com/user_guide/insta...e_414.html

mm well what does the "framework" look like :

Code:
[andrew@darkstar http]$ tree CI4-CMS -L 1
CI4-CMS
├── Gruntfile.js
├── LICENSE
├── LICENSE-CI4-CMS
├── README-codeigniter.md
├── README.md
├── app
├── clean.sh
├── composer.json
├── composer.lock
├── node_modules
├── package-lock.json
├── package.json
├── preload.php
├── preload_bk.php
├── public
├── scss
├── spark
├── vendor
└── writable

and what happens when you update with composer ?

if you go to in my case web dev apache :



[CODE}

[andrew@darkstar framework]$ pwd
/srv/http/CI4-CMS/vendor/codeigniter4/framework
Code:
[CODE}

[andrew@darkstar framework]$ ls
LICENSE    app   env     preload.php  spark tests
README.md  composer.json  phpunit.xml.dist  public system  writable

if we look at:



Code:
[andrew@darkstar framework]$ sdiff -Z  /srv/http/CI4-CMS/vendor/codeigniter4/framework/app/Config/Paths.php  /srv/http/CI4-CMS/app/Config/Paths.php
<?php <?php

namespace Config; namespace Config;

/** /**
* Paths * Paths
* *
* Holds the paths that are used by the system to * Holds the paths that are used by the system to
* locate the main directories, app, system, etc. * locate the main directories, app, system, etc.
* *
* Modifying these allows you to restructure your application * Modifying these allows you to restructure your application
* share a system folder between multiple applications, and m * share a system folder between multiple applications, and m
* *
* All paths are relative to the project's root folder. * All paths are relative to the project's root folder.
*       <
* NOTE: This class is required prior to Autoloader instantia <
*      and does not extend BaseConfig.       <
*/ */

there is a change in Paths.php  so basically  updating goes to  vendor. To make changes in framework, you have to  look think about & take files  from : /srv/http/CI4-CMS/vendor/codeigniter4/framework  into your framework
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB