How can I do to find out the current version of Codeigniter via code?
Is there a constant or function that does this?
How can I do to find out the current version of Codeigniter via code?
Is there a constant or function that does this?
Just use the define built in :
define('CI_VERSION', '2.2.3');
That in version 3 is set to
const CI_VERSION = '3.2.0-dev';
This is in /system/core/CodeIgniter.php
Use: echo CI_VERSION;
. This constant is set to system/core/CodeIgniter.php
.