Which version of CodeIgniter am I currently using?


Question

Quick question.

Is there something similar to a phpinfo() - that would display the version for CodeIgniter?

Thanks.

1
229
12/20/2016 5:04:11 PM

Accepted Answer

Yes, the constant CI_VERSION will give you the current CodeIgniter version number. It's defined in: /system/codeigniter/CodeIgniter.php As of CodeIgniter 2, it's defined in /system/core/CodeIgniter.php

For example,

echo CI_VERSION; // echoes something like 1.7.1
351
6/12/2014 12:45:11 AM

Look for define in system/core/CodeIgniter.php:

define('CI_VERSION', '3.1.8');

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon