https://github.com/cakedc/users/tree/2.0

解压缩cakedc用户插件后,我将其复制到app / Plugin文件夹。

我运行了此命令并收到错误消息:
cake migration all -plugin users

为什么会出现此错误?它是cakephp-2.0,解压缩了用户插件后,我看到文件夹的约定就像cakehp-1.3
Error: Shell class MigrationShell could not be found.
#0 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(167): ShellDispatcher->_getShell('migration')
#1 /var/www/cakephp/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /var/www/cakephp/lib/Cake/Console/cake.php(24): ShellDispatcher::run(Array)
#3 {main}

如何安装和使用此用户插件?

最佳答案

  • 您安装了CakeDC的Migrations plugin吗?
  • 你有loaded the plugins吗?
  • 09-30 08:46