J'ai créé un script shell comme suitExécution CakePHP Script Shell
<?php
class EmailShell extends AppShell
{
public function main()
{
$this->out('Hello world.');
}
}
Quand je navigue au dossier Console dans la ligne de commande et tapez email gâteau je reçois l'erreur suivante.
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}
voir plus: http://stackoverflow.com/questions/10671634/cakephp-shell-shell-class-helloshell-could-not-be-found/26845978#26845978 –