How do I find the current version of codeigniter?

2

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

Is there a constant or function that does this?

    
asked by anonymous 16.01.2017 / 13:02

2 answers

3

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

    
16.01.2017 / 13:25
2

Use: echo CI_VERSION; . This constant is set to system/core/CodeIgniter.php .

Font

    
16.01.2017 / 13:25