tags:

views:

279

answers:

1

Hi all,
Quick question. Is there something similar to a phpinfo() that I could spit out for CodeIgniter?

Thanks.

+4  A: 

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

For example,

function get_version() {

    echo CI_VERSION; // echoes something like 1.7.1

}
Colin
Correct. It's also in the commments of that file though, so no need to write or run code just to find out the version.
Ferdy