将CakePHP 1.2升级到2.4

时间:2014-08-06 13:57:53

标签: php cakephp cakephp-2.0 upgrade cakephp-1.2

我有什么:

我有cakephp应用程序,它位于CakePHP 1.2.12。

我尝试了什么:

我使用升级插件:https://github.com/dereuromark/cakephp-upgrade

我已经完成了所有步骤

  1. 我已下载新的Cakephp 2.4

  2. 我在cakephp1.3应用程序的app里面创建了插件

  3. 将/ app / config文件夹重命名为/ app / Config

  4. 写CakePlugin :: loadAll();在我的app / Config bootstrap

  5. 错误:

    当我尝试

    ..\lib\Cake\Console\cake Upgrade.Upgrade all
    

    它给我一个错误,如

    Error: Plugin Upgrade could not be found.
      #0 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(365): CakePlugin::path('Upgrade')
      #1 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(226): App::pluginPath('Upgrade')
      #2 C:\xampp\htdocs\cakephp24\lib\Cake\Core\App.php(547): App::path('Console/Command', 'Upgrade')
      #3 [internal function]: App::load('UpgradeShell')
      #4 [internal function]: spl_autoload_call('UpgradeShell')
      #5 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(247): class_exists('UpgradeShell')       
       #6 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(198): ShellDispatcher->_getShell('Upgrade.Upgrade')
        #7 C:\xampp\htdocs\cakephp24\lib\Cake\Console\ShellDispatcher.php(66): ShellDispatcher->dispatch()
       #8 C:\xampp\htdocs\cakephp24\lib\Cake\Console\cake.php(49): ShellDispatcher::run(Array)
       #9 {main}
    

0 个答案:

没有答案