Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What version of Kohana am I using?

Tags:

version

kohana

Where in the Kohana framework can I find out the version information?

Everything I look at in the tutorials opposes to what I view in my application. I believe this to be a version issue as the methods and calls are slightly different between the documentation and my install.

like image 359
Cem Baykam Avatar asked Oct 30 '10 13:10

Cem Baykam


2 Answers

At least for versions >= 3.0, the version number for Kohana is located in system/classes/kohana/core.php.

It will be in this form:

// Release version and codename
const VERSION  = '3.2.0';

Since that's just a constant, you can access it through php with Kohana::VERSION.

like image 143
2 revs, 2 users 71% Avatar answered Nov 12 '22 07:11

2 revs, 2 users 71%


Check out these constants in the Kohana class:

// Release version and codename
const VERSION  = '3.0.8';
const CODENAME = 'großen jäger';

So Kohana::VERSION and Kohana::CODENAME.

like image 45
The Pixel Developer Avatar answered Nov 12 '22 08:11

The Pixel Developer