I am writing this blog for beginners who are learning Cakephp. When you learn Cakephp then first thing that reminds is that which version are you installing Cakephp. To know the version of Cakephp let me tell you that there are two ways for getting the cakephp versions. One of the simplest way to find current version is to type the following lines of code in the controller.
echo Configure::version();
Second way of knowing the current version number of Cakephp 2.* can be found in /path/to/cake/lib/Cake/VERSION.txt
. This 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.
Below are the contents of the 2.7.11 VERSION.txt
:
////////////////////////////////////////////////////////////////////////////////////////////////////
// +--------------------------------------------------------------------------------------------+ //
// 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
// @package Cake
// @since CakePHP(tm) v 0.2.9
// @license http://www.opensource.org/licenses/mit-license.php MIT License
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
2.7.11
1 Comment(s)