What version of Kohana am I using?

2020-04-02 23:12发布

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.

4条回答
一夜七次
2楼-- · 2020-04-02 23:34

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

查看更多
成全新的幸福
3楼-- · 2020-04-02 23:36

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.

查看更多
Lonely孤独者°
4楼-- · 2020-04-02 23:39

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.

查看更多
成全新的幸福
5楼-- · 2020-04-02 23:46

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

查看更多
登录 后发表回答