Saturday, January 21, 2012

Re: Cakephp 2.0 cPanel and Shell

not sure if your running what you think your running

cake test runs the core test shell

whereas you have a test task; as far as I know tasks are run by shells
and you should call a command of a shell which in turn calls a task

for more info read the example there is helloword
http://book.cakephp.org/2.0/en/console-and-shells.html#Shell::$tasks

 - S




On 21 January 2012 10:25, Borja Domínguez <iam.n3uro@gmail.com> wrote:
<?php
class TestTask extends Shell {
    
    function main() {
        $this->out('Hello world.');
    }
    
    function execute() {
        $this->out('Hello world 2.');
    }
}

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: