Posted On: Apr 24, 2024
Here are simple steps to check the version of the CodeIgniter Framework.
In CodeIgniter version of the framework is defined in /system/core/CodeIgniter.php
Simply open that file and search for CI_VERSION. you will see something like below.
define(‘CI_VERSION’, '3.0.6');
In controller you can simply print it
echo CI_VERSION;
You can use CI_VERSION constant to check installed version of CodeIgniter
echo CI_VERSION;
There are different versions available in Codeigniter from version 1.7.2 to 2.0.3. You may also find few differences between class definitions of these versions. When someone has developed any website on the Codeigniter framework and you need to remove or add functions then there is a need of knowing which version has been used by the developer.
To check the version of Codeigniter framework there are two methods that you can use,
Method 1: You can access the file
System>>Core>>Codeigniter.php
Method 2: In any file view of index.php type the below-mentioned code
<?php echo CI_VERSION; ?>
You will get the output with the current version of Codeigniter.
Never Miss an Articles from us.
What is the current version of Codeigniter?..
List Databases supported By Codeigniter Frameworks?..