我如何知道哪个CakePHP版本是一个项目? [英] How can I tell which CakePHP version is a project made with?
问题描述
能否知道用于生成只有应用代码可用的项目的CakePHP版本?
Is it posible to know the version of CakePHP used to generate a project with only the app code available?
我的问题:
我下载了一个用CakePHP制作的项目,我真的不能告诉使用Cake版本。文件说,例如。 @version $ Revision:8004 $
,但在某些文件中这是不同的。我应该假设最高版本(8004)是正确的使用?
I downloaded a project made with CakePHP, and I really can't tell wich Cake version to use. The files say, e.g. @version $Revision: 8004 $
, but this is different in some files. Should I assume that the highest revision (8004) is the correct one to use?
这似乎是从2008年左右,所以我想这是一个1.x版本。
It seems to be from around 2008, so I guess it's a 1.x version.
PD:这里是代码该项目。
PD: Here is the code to the project.
推荐答案
我发现版本,作为CakePHP 2.3.0, root Cake lib。
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
这篇关于我如何知道哪个CakePHP版本是一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!