Which version of CodeIgniter am I currently using?

Dirk picture Dirk · Feb 4, 2010 · Viewed 164.3k times · Source

Quick question.

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

Thanks.

Answer

Colin Brock picture Colin Brock · Feb 4, 2010

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