4

yii 拡張機能http://www.yiiframework.com/extension/yii-user/をインストールして、コマンド 'yiic migrate --migrationPath=user.migrations' を挿入しようとしました。代わりに機能するように正しく行う方法:

C:\xampp\htdocs\eshops\protected>..\framework\yiic migrate --migrationPath=modules.user.migrations
Error: The migration directory does not exist: modules.user.migrations
C:\xampp\htdocs\eshops\protected>cd ..
C:\xampp\htdocs\eshops>framework\yiic migrate --migrationPath=protected.modules.user.migrations
Error: The migration directory does not exist: protected.modules.user.migrations
C:\xampp\htdocs\eshops>cd protected
C:\xampp\htdocs\eshops\protected>..\framework\yiic migrate --migrationPath=user.migrations
Error: The migration directory does not exist: user.migrations

私はXAMPPとWindows 7を持っています。

ありがとうございました

4

3 に答える 3

5

答えは次のとおりです。

という名前のファイルが 2 つあります。yiic.php

  1. ../yii/framework/yiic.php

  2. .../保護/yiic.php

2番目のものを使用する必要があります

于 2014-01-01T15:28:58.103 に答える
2

使用するyiic migrate --migrationPath=application.modules.user.migrations

于 2012-11-19T10:31:09.653 に答える