I am trying to get a cronjob in CakePHP work. But I am getting this error: Error: Class TestingShell could not be loaded.
Here is my /app/vendors/shells/testing.php
file:
class TestingShell extends Shell {
var $uses = array('Test');
function main(){
$this->out('Number of tests :');
$this->out($this->Test->find('count'));
$this->out('.');
if($this->Test->delete(1)){
$this->out('test deleted');
}
else{
$this->out('test not deleted');
}
}
}
I am calling the cronjob like this: /home/root/public_html/site/cake/console/cake -app /home/root/public_html/site/app testing
What am I doing wrong? Thank you very much!
EDIT I must add that, locally, the shell works fine.