1.

How to check the CodeIgniter version?

Answer»

There are 2 ways to check the CodeIgniter VERSION.

  • The first method is to run the following code:
<?php ECHO CI_VERSION; ?>

You can echo the constant value of CI_VERSION in the CodeIgniter CONTROLLER or view file.

  • The second method is to navigate to the system/core/CodeIgniter.php DIRECTORY which stores the current version number of CodeIgniter in a global constant named ‘CI_VERSION’. Open the file and have a look at the lines:
/** * CodeIgniter Version * * @VAR string * */ define('CI_VERSION', '4.1.3');


Discussion

No Comment Found