CodeIgniter Forums
What version of CI am I running - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: What version of CI am I running (/showthread.php?tid=62980)



What version of CI am I running - vdvn - 09-14-2015

Hi all,

I am new to CodeIgniter and I have been handled a legacy system using CI. I am wondering where can I find what CI version the system is using? I opened a few php files and although they all have a version number in them there seem to be several different numbers.

Granted, it seems like I inherited a 1.x version. So I am also wondering if it's worth it to migrate to the latest version (3.0.1)? And what kind of hurdle I should expect?

Thanks for the help Smile


RE: What version of CI am I running - Diederik - 09-14-2015

For your version you can have a look at system/core/CodeIgniter.php Or you can use "echo CI_VERSION;".

You can read the documentation about upgrading process:
http://www.codeigniter.com/userguide3/installation/upgrading.html

Probably the most relevant ones are:
http://www.codeigniter.com/userguide3/installation/upgrade_200.html
http://www.codeigniter.com/userguide3/installation/upgrade_300.html

I believe all the upgrades from 2.0 tot 2.2 all just involve replacing the system dir, no need to change your own application.


RE: What version of CI am I running - Muzikant - 09-14-2015

To check CodeIgniter version you can use

PHP Code:
echo CI_VERSION

in some of your controllers. Remember, that echoing directly from controller is a bad practice, but for this purpose it is good enough.


RE: What version of CI am I running - vdvn - 09-14-2015

Thanks guys, version is 1.7.0

Now onto reading that upgrade doc @Diederk pointed out Smile