首页 文章

CakePHP站点从1.3.3升级到2.3.2

提问于
浏览
0

Update:

通过 cake/VERSION.txt 发现它实际上是1.3.3


我的网站运行在2008年 Build 的cakePHP v 0.2.9上 . 但现在在PHP 5中,一些功能和功能已被弃用 . 我的网站停止运行 .

任何人都可以告诉我更好,更简单的方法我可以升级我的cakePHP版本,而不会影响我的网站,并使其运行 .

我的index.php在根文件夹上的 Headers 如下(为了你们更好地理解我的网站的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    
 */    
/**

1 回答

  • 0

    Update

    CakePHP Migration guide from 1.3 - 2.0

    (然后您将看到左侧导轨上2.1,2.2 ......的其余迁移指南)


    您可能只想安装最新的CakePHP,然后将所有YOUR文件(控制器,模型,视图,插件,webroot文件(css,js..etc))复制到它并从那里进行测试/修复 . 如果没有别的,最近的CakePHP将为您提供更好/更具体的错误报告,所以希望您可以一次修复一个错误,直到没有任何剩余 .

    另一种选择是通过所有迁移说明并逐行更改,但从0.2.9 ......底线开始,可能没有简单的方法 .

    (我希望你的评论是正确的,你有1.3或者其他东西 . )

相关问题