Version numbers for CakePHP
Asked Answered
S

3

17

I have inherited code from old contractors overseas. The cakephp version I see is:

CakePHP v 0.2.9

Where does this fit in? Does it predate 1.0 or is this some 2.0 convention?

Slaby answered 5/4, 2012 at 4:5 Comment(1)
the 0.2.9 is "since", i.e. when the class/file was first introducedCachou
C
38

Simplest way to find current version is

echo Configure::version();
Cachou answered 5/4, 2012 at 7:54 Comment(0)
B
59

The current version number of Cake 2.0 can be found in /path/to/cake/lib/Cake/VERSION.txt. The txt file contains a commented block containing the file description (stating that it has been there since Cake 0.2.9), followed by the actual version number.

The same file may be found in Cake 1.3 in /path/to/cake/cake/VERSION.txt.

Below are the contents of the 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
Billow answered 5/4, 2012 at 6:36 Comment(0)
C
38

Simplest way to find current version is

echo Configure::version();
Cachou answered 5/4, 2012 at 7:54 Comment(0)
A
1

the best way for that is command .\cake version this cammand will show cakephp version that you used.

Anew answered 14/8, 2016 at 21:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.