How can I tell which CakePHP version is a project made with? How can I tell which CakePHP version is a project made with? php php

How can I tell which CakePHP version is a project made with?


I have found that the version, as of CakePHP 2.3.0, is held within a static file under the root Cake lib.

bash #: cat $CAKE_ROOT/lib/Cake/VERSION.txt////////////////////////////////////////////////////////////////////////////////////////////////////// +--------------------------------------------------------------------------------------------+ //// CakePHP Version//// Holds a static string representing the current version of CakePHP//// CakePHP(tm) : Rapid Development Framework (http://cakephp.org)// Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)//// Licensed under The MIT License// Redistributions of files must retain the above copyright notice.//// @copyright     Copyright 2005-2012, 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.3.0


Edit core.php, add to top:

echo Configure::version();


For cakephp 3.x find \vendor\cakephp\cakephp\VERSION.txt

enter image description here

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