hi I want to access a task outside the shell and execute it from my app/controller. How can I do that
<?php
class SeaShell extends Shell { // found in /vendors/shells/sea.php
var $tasks = array('Sound'); //found in /vendors/shells/tasks/sound.php
function main() {
$this->Sound->execute();
}
}
?>
I suggest you put your logic in a Model or Component. This way it is accessible from both shells and controllers.