CakePHP的版本号

CakePHP的版本号,cakephp,cakephp-1.2,Cakephp,Cakephp 1.2,我从海外的老承包商那里继承了代码。我看到的cakephp版本是: CakePHP V0.2.9 这个在哪里合适?它是早于1.0还是这是某种2.0约定?Cake 2.0的当前版本号可以在/path/to/Cake/lib/Cake/version.txt中找到。txt文件包含一个注释块,其中包含文件描述(声明自0.2.9以来一直存在),后跟实际版本号 相同的文件可以在Cake 1.3中的/path/to/Cake/Cake/VERSION.txt中找到 下面是2.0.5.txt版本的内容: ///

我从海外的老承包商那里继承了代码。我看到的cakephp版本是:

CakePHP V0.2.9


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

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

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

下面是2.0.5.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

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

echo Configure::version();

最好的方法是命令。\cake version此命令将显示您使用的cakephp版本。

0.2.9是“自”,即首次引入类/文件时