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 ?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.