CakePhp via Shell returns error: class HelloShell could not be loaded

2

I configured and installed everything with CakePhp for use via the command line in ubuntu. I created and saved the following:

class HelloShell extends AppShell {
public function main() {
    $this->out('Hello world.');
}
}

What is their example code. But when I run via the command line this error is returned, which can not load the class.

It is located in:

/home/ubuntu/cakephp/apps/almofadagram/Console/Command/HelloShell.php

And I run from there, but as I said the error is returned:

Error: Class HelloShell could not be loaded.
    
asked by anonymous 09.02.2014 / 11:22

1 answer

2

According to the manual at link

  

From your application directory, run:

     

Console/cake hello

That is, from the directory of your application .

Then first go to the application directory, and then try again:

cd /home/ubuntu/cakephp/apps/almofadagram
./Console/cake hello
    
09.02.2014 / 15:32