【发布时间】:2013-04-19 05:27:04
【问题描述】:
更新:
通过cake/VERSION.txt发现它实际上是1.3.3
我的网站在 2008 年构建的 cakePHP v 0.2.9 上运行。但现在在 PHP 5 中,一些功能和功能已被弃用。我的网站停止运行。
谁能告诉我更好更简单的方法,我可以升级我的 cakePHP 版本而不影响我的网站并使其运行。
我在根目录下的index.php文件头如下(方便大家了解我网站的cakephp版本)
/**
* Requests collector.
*
* This file collects requests if:
* - no mod_rewrite is avilable or .htaccess files are not supported
* -/public is not set as a web root.
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @since CakePHP(tm) v 0.2.9
* @version $Revision: 7945 $
* @modifiedby $LastChangedBy: gwoo $
* @lastmodified $Date: 2008-12-18 20:16:01 -0600 (Thu, 18 Dec 2008) $
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
/**
【问题讨论】:
-
0.2.9?哇。它可能已经发生了很大的变化,您只需要逐行浏览它,或者完全重写它。
-
还要注意index.php文件中的数字不一定代表你的版本是0.2.9。它只是说请求收集器从 0.2.9 版开始就包含在 CakePHP 中。 (事实上,你几乎不可能拥有 0.2.9。)
-
不确定这是否有帮助,但这是我不久前提出的关于升级 Cake 版本的问题:stackoverflow.com/questions/6279340/…
-
你到底为什么要使用这样一个旧版本的 WEB(!!!) 框架?不介意安全问题?
标签: cakephp cakephp-1.3 upgrade cakephp-2.3