What version of Kohana am I using?
Asked Answered
K

4

8

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.

Kayleigh answered 30/10, 2010 at 13:44 Comment(0)
U
14

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.

Unconformable answered 30/10, 2010 at 13:44 Comment(1)
I don't know what Kohana version you're referring to (maybe v2.X), but this is not correct for v3.X, the current stable branch.Truckload
V
5

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.

Vassalage answered 30/10, 2010 at 16:18 Comment(0)
G
3

The file you are looking for is system/classes/kohana/core.php.

Geniagenial answered 4/11, 2010 at 16:5 Comment(0)
D
1

For Kohana 2.x look for KOHANA_VERSION in system/core/Bootstrap.php

Diestock answered 11/1, 2012 at 17:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.