开发者

How to get CakePHP's migration plugin to work under windows?

开发者 https://www.devze.com 2023-01-18 03:09 出处:网络
I have a running CakePHP 1.3 site under Windows using ZendS开发者_高级运维erver CE. I have also added win-bash and such in my Path. Console seems to work fine, except when trying to use the migration

I have a running CakePHP 1.3 site under Windows using ZendS开发者_高级运维erver CE. I have also added win-bash and such in my Path. Console seems to work fine, except when trying to use the migration plugin. Seems no matter what I try i get:

"Error: Class MigrationShell could not be loaded."

Anyone else had this issue?


We had similar issue for one of our dev setups for windows. The trick is to run the migrations commands from the root folder of your application - that is the folder that contains "app", "cake" etc. folders

Once you cd into your root folder - run php cake/console/cake.php migration all

0

精彩评论

暂无评论...
验证码 换一张
取 消