CakePHP的版本号

cdu*_*dub 17 cakephp cakephp-1.2

我继承了海外老承包商的代码.我看到的cakephp版本是:

CakePHP v 0.2.9

这适合哪里?它是早于1.0还是这个2.0约定?

men*_*sch 59

可以在中找到Cake 2.0的当前版本号/path/to/cake/lib/Cake/VERSION.txt.txt文件包含一个注释块,其中包含文件描述(声明它自Cake 0.2.9以来一直存在),后跟实际版本号.

可以在Cake 1.3中找到相同的文件/path/to/cake/cake/VERSION.txt.

以下是2.0.5的内容VERSION.txt:

////////////////////////////////////////////////////////////////////////////////////////////////////
    // +--------------------------------------------------------------------------------------------+ //
    // CakePHP Version
    //
    // Holds a static string representing the current version of CakePHP
    //
    // CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
    // Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
    //
    // Licensed under The MIT License
    // Redistributions of files must retain the above copyright notice.
    //
    // @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
    // @link          http://cakephp.org
    // @package       cake.libs
    // @since         CakePHP(tm) v 0.2.9
    // @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
    // +--------------------------------------------------------------------------------------------+ //
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    2.0.5
Run Code Online (Sandbox Code Playgroud)


Cos*_*sta 38

找到当前版本的最简单方法是

echo Configure::version();
Run Code Online (Sandbox Code Playgroud)