How To Check Codeigniter Version?
In this tutorial, we'll see how to check Codeigniter version in project you are using. Check Version is easy but would be a challenge for someone getting started with Codeigniter framework.
I was working other projects in Codeigniter. Codeigniter looks like an earlier release but I'm not sure about the exact version of Codeigniter the application runs. So I started digging out and found the answers - turn out to be simple like I presumed. And I wish to share here the way I used to find Codeigniter version for your reference.
Finding Codeigniter Version:
Just go to 'system' > 'core' > 'CodeIgniter.php' and look for the lines,
/** * CodeIgniter Version * * @var string * */ define('CI_VERSION', '3.0.0');
Here it is CodeIgniter 3 check version in a project.
Another method to check in Codeigniter version, you can echo the constant value 'CI_VERSION' somewhere in Codeigniter controller/view file.
<?php echo CI_VERSION; ?>
And that should print CodeIgniter version. Like you can easily find Codeigniter version in yours project.
I hope it can help you...
Thanks for sharing this information, such a nice article
Very nice and informative post....
Thanks it was very helpfull