Jump to content

changing CakePHP project from version 1.3.16 to 2.3.5


neginf

Recommended Posts

Have project working in 1.3.16. Written by someone else.

To put it in 2.3.5, trying to do what's suggested on the 2nd page of this article.

http://book.cakephp.org/2.0/en/console-and-shells/upgrade-shell.html

 

Copied lib folder from the CakePHP 2.3.5 area to the 1.3.16 area and copied the console folder from 2.3.5 to the 1.3.16 app folder like the article said.

Then tried to run UpgradeShell.php which is in the lib\Cake\Console\Command directory and run it from the app folder this way at the prompt

 

c:\inetpub\wwwroot\old\app>php ..\lib\Cake\Console\Command\UpgradeShell.php --dry-run

 

This is the error I got

 

PHP fatal error:Class 'App' not found in c:\inetpub\wwwroot\old\lib\Cake\Console\Command\UpGradeShell.php on line 21.

 

That line is App::uses('AppShell','Console/Command');

 

 

How can I get UpgradeShell.php to run ?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.