0

更新:

通过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    
 */    
/**
4

1 回答 1

0

Update

CakePHP Migration guide from 1.3 - 2.0

(You'll then see the rest of the migration guides for 2.1, 2.2...etc on the left rail)


You might want to just install the latest CakePHP fresh, then copy over all YOUR files (controllers, models, views, plugins, webroot files (css, js..etc) to it and test/fix from there. If nothing else, the most recent CakePHP will give you better/more specific error reporting, so hopefully you can just fix one error at a time until there aren't any left.

The other option would be to go through all the migration notes and change line-by-line, but going from 0.2.9 .... bottom line, there is likely no easy way.

(I hope for your sake the commenters are right that you have 1.3 or something instead.)

于 2013-04-19T05:33:16.290 回答