how can i find the version of codeigniter an application was written in?
Asked Answered
D

3

9

I'm reviewing someone's code and I can see that they're using codeigniter. But I'm trying to figure out which version they've used. I've been rooting around in the directory structure to find some information but haven't been successful yet.

Thanks.

Dactylic answered 1/4, 2013 at 18:6 Comment(1)
possible duplicate of Which version of CodeIgniter am I currently using?Chryso
H
15

Inside the framework, it's defined in 'CI_VERSION'.

Path is system/core/CodeIgniter.php

define('CI_VERSION', '2.1.3');
Hypnotism answered 1/4, 2013 at 18:12 Comment(0)
A
6

Simple as this;

echo CI_VERSION;

The constant is globally available and is pre-filled with the release version of the code you have.

Just put the echo in an empty controller and call it in the browser to test it.

Aboveboard answered 1/4, 2013 at 18:8 Comment(0)
K
0

For codeigniter 3 (CI3):

<?php echo CI_VERSION; ?> OR system/core/CodeIgniter.php > const CI_VERSION 

For codeigniter 4 (CI4):

<?php echo CI_VERSION; ?> OR system/CodeIgniter.php > const CI_VERSION 
Kerrill answered 8/5 at 10:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.