How To Check Application Version, On Which We Are Working using Codeigniter 4?

Sep 18, 2021 . Admin



Hello Friends,

Now let's see example of how to get application version, on which we are working in codeigniter 4. We will use how to use to get application version, on which we are working using in codeigniter 4. Here you will learn how to use to check application version, on which we are working in codeigniter 4. We will use to check application version, on which we are working using codeigniter. Let's get started with how to to check application version, on which we are working use in codeigniter 4.

Here i will give you many example how you can use to check application version, on which we are working in codeigniter 4.

Check Codeigniter Version Example

Basically, there are two ways through which you can reach to your destination.

Codeigniter is a robust and noted framework that creates coherence with developers. The compendium of files is very well documented, and it stores its version in global const `CI_VERSION` in the following

app/vendor/codeigniter/framework/system/Codeigniter.php file.

You can open this file and search for “The current version of CodeIgniter Framework” line of text within the Codeigniter class. Below you will see the version of codeigniter somewhere between the line number 63.

class CodeIgniter
{
    /**
     * The current version of CodeIgniter Framework
    */
    const CI_VERSION = '4.0.4';
}
The Relentless Way

This method is pretty simple and straightforward; developer’s love this way. Just open your view template and define the below code it will print out the Codeigniter version in one go.

<?php 
   echo \CodeIgniter\CodeIgniter::CI_VERSION;
?>

We are creating this tutorial considering Codeigniter 4, if you want to check the find out the app version in Codeigniter 3 then use the below line of code.

<?php
    echo CI_VERSION;
?>

So, these were the methods through which you can display and check the CodeIgniter app version that you are working on.

Now you can check your own.

It will help you....

#Codeigniter 4 #Codeigniter