Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version numbers for CakePHP

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?

like image 935
cdub Avatar asked Apr 05 '12 04:04

cdub


People also ask

What is the latest version of CakePHP?

New CakePHP 4.4 Strawberry.

How do I know my CakePHP version?

Open lib/Cake/VERSION. txt file, the version number is at bottom of file. Open vendor/cakephp/cakephp/VERSION.

How to check CakePHP version using cmd?

Browse to your project forlder. continue browsing to the bin forlder ( cd bin) then type cake version.

What is CakePHP used for?

CakePHP is a PHP, object-oriented, Model-View-Controller framework, designed around providing the tooling to let you rapidly build web applications. CakePHP focuses on solving problems rapidly, by using conventions over configuration, to enable you to work sooner, without making a lot of decisions upfront.


2 Answers

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
like image 178
mensch Avatar answered Oct 28 '22 02:10

mensch


Simplest way to find current version is

echo Configure::version();
like image 44
Costa Avatar answered Oct 28 '22 00:10

Costa