我尝试安装 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。
谢谢
最佳答案
答案是:
有 2 个名为 yiic.php
的文件
../yii/framwork/yiic.php
.../protected/yiic.php
你应该使用第二个
关于PHP、Yii 用户扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13450493/