Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check version of codeigniter framework?

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.

like image 595
bansal kapil Avatar asked Dec 23 '16 06:12

bansal kapil


People also ask

What is the current version of 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.

What is the CodeIgniter framework?

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.

Which version of CodeIgniter is best?

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.


1 Answers

See in system/core/CodeIgniter.php and there is a constant like this..

define('CI_VERSION', '3.0.6');
like image 94
Hikmat Sijapati Avatar answered Oct 18 '22 02:10

Hikmat Sijapati