找不到Shell类HelloShell

找不到Shell类HelloShell

本文介绍了Cakephp shell:找不到Shell类HelloShell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是cakephp的新手。我配置cakephp shell作为cakephp
手册说,当我运行HelloShell命令蛋糕
你好,我得到错误信息如下:

I am a newer to cakephp .I config the cakephp shell as the cakephphandbook says,when I run the HelloShell with the command cakeHello ,I got the error information as follows:

Error: Shell class HelloShell could not be found.
1#G:\htdocs\cakedemo\lib\Cake\Console\ShellDispatcher.php(191):ShellDispatcher>_getShell('hello')
2#G:\htdocs\cakedemo\lib\Cake\Console\ShellDispatcher.php(69):ShellDispatcher->dispatch()
3#G:\htdocs\cakedemo\app\Console\cake.php(33):ShellDispatcher::run(Array)  {main}

my cakephp version :

my cakephp version :

应用程式:控制台

任何有帮助的人都可以给我建议,请求。

anyone who is helpful can give me a advice,plea.

推荐答案

有你的错误。
你应该总是在你的APP路径执行蛋糕控制台。

there is your mistake.you should always be in your APP path to execute the cake console.

...app/>../lib/Cake/Console/cake MyShell

或(使用APP控制台文件夹) p>

or (using the APP Console folder):

...app/>Console/cake MyShell

并且MyShell应该在 ... app / Console / Command /
这一切都在这里。

and MyShell should then be in ...app/Console/Command/.Thats all there is to it.

这篇关于Cakephp shell:找不到Shell类HelloShell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 18:43