I recently setup a old Codeigniter framework on my xampp.But i don't know the version of this framework. I use the code
<?php echo CI_VERSION; ?>
but its give me error
Notice: Use of undefined constant CI_VERSION - assumed 'CI_VERSION' in /opt/lampp/htdocs/projectname/views/v_header.php on line 57
CI_VERSION
Please guide me, I am new in Codeigniter.
CodeIgniter 4 is the latest version of the framework, intended for use with PHP 7.3+ (including 8.1). The initial release was February 24, 2020. The current version is v4. 2.6.
CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.
CodeIgniter 4, for using PHP 7 in writing and as a minimum configuration on the server, and other aspects, has a better performance than CodeIgniter 3.
See in system/core/CodeIgniter.php
and there is a constant like this..
define('CI_VERSION', '3.0.6');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With