How do I find out the current version of codeigniter?

Asked

Viewed 1,982 times

3

How can I to find out the current version of Codeigniter via code?

Is there any constant or function that does this?

2 answers

4


Just use the defines built in:

define('CI_VERSION', '2.2.3');

Which in version 3 is defined as

const CI_VERSION = '3.2.0-dev';

This is in /system/core/CodeIgniter.php

3

Use: echo CI_VERSION;. This constant is defined in system/core/CodeIgniter.php.

Source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.