我创建了一个shell脚本如下运行CakePHP的Shell脚本
<?php
class EmailShell extends AppShell
{
public function main()
{
$this->out('Hello world.');
}
}
,当我在命令行中定位到控制台文件夹并键入蛋糕电子邮件我碰到下面的错误。
Error: Shell class EmailShell could not be found.
#0 C:\wamp\www\gitgrow\lib\Cake\Console\ShellDispatcher.php(167): ShellDispatche
r->_getShell('email')
#1 C:\wamp\www\gitgrow\lib\Cake\Console\ShellDispatcher.php(69): ShellDispatcher
->dispatch()
#2 C:\wamp\www\gitgrow\app\Console\cake.php(33): ShellDispatcher::run(Array)
#3 {main}
查看更多:http://stackoverflow.com/questions/10671634/cakephp-shell-shell-class-helloshell-could-not-be-found/26845978#26845978 – 2014-11-10 14:27:13