What version of Kohana am I using?

牧云@^-^@ 提交于 2019-12-19 16:54:17

问题


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.


回答1:


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.




回答2:


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.




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/4058949/what-version-of-kohana-am-i-using

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!