我创建了一个shell脚本如下
<?php
class EmailShell extends AppShell
{
public function main()
{
$this->out('Hello world.');
}
}
当我在命令行中导航到控制台文件夹并键入cake email时,我收到以下错误。
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}