0

我有一个 cakephp 2.2 的多应用程序安装。我无法使任何外壳工作:

错误信息:

patron@serveur01linux:/cakeapps/developpement/Console$ bash cake hello
Error: Shell class HelloShell could not be found.
#0 /cakephp/2.2/lib/Cake/Console/ShellDispatcher.php(191): ShellDispatcher->_getShell('hello')
#1 /cakephp/2.2/lib/Cake/Console/ShellDispatcher.php(69): ShellDispatcher->dispatch()
#2 /cakeapps/developpement/Console/cake.php(36): ShellDispatcher::run(Array)
#3 {main}

欢迎画面:

Welcome to CakePHP v2.2.3 Console
---------------------------------------------------------------
App : developpement
Path: /cakeapps/developpement/
---------------------------------------------------------------
Current Paths:

 -app: developpement
 -working: /cakeapps/developpement
 -root: /cakeapps
 -core: /cakephp/2.2/lib

Changing Paths:

Your working path should be the same as your application path to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp

Available Shells:

[CORE] acl, api, bake, command_list, console, i18n, schema, test, testsuite, upgrade

[app] chaine, client, hello

To run an app or core command, type cake shell_name [args]
To run a plugin command, type cake Plugin.shell_name [args]
To get help on a specific command, type cake shell_name --help

正如你所看到的,我工作并且我在正确的文件夹 app (/cakeapps/developpement) 中,核心路径是安装核心的位置 (/cakephp/2.2/lib),欢迎屏幕显示我可用的 shell。但是,我一直在上面得到这个错误。

问题可能出在哪里?

4

1 回答 1

0

正如马克在评论中提到的那样,您应该运行:

patron@serveur01linux:/cakeapps/developpement$ bash cake hello

代替:

patron@serveur01linux:/cakeapps/developpement/Console$ bash cake hello
于 2015-02-21T22:43:43.863 回答