Hello... I'm trying to use the "hello world" shell which is located at
E:\project\trunk\app\Console\Command\HelloShell.php.

Using the command window, "cake hello" works exactly as described...
However, every attempt I've made to execute this script from a cake
controller has failed.  The controller code:

$out = $ret = null;
$ans = exec('cake hello 2>&1', $out, $ret);

returns the follow error message in $out and $ret has a value of 500!

array(
        (int) 0 => '',
        (int) 1 => 'Error: Shell class HelloShell could not be found.',
        (int) 2 => '#0 E:\project\trunk\lib\Cake\Console
\ShellDispatcher.php(191): ShellDispatcher->_getShell('hello')',
        (int) 3 => '#1 E:\project\trunk\lib\Cake\Console
\ShellDispatcher.php(69): ShellDispatcher->dispatch()',
        (int) 4 => '#2 E:\project\trunk\app\Console\cake.php(33):
ShellDispatcher::run(Array)',
        (int) 5 => '#3 {main}',
        (int) 6 => ''
)

\app\Controller\MyController.php (line 125)


Any ideas would be greatly appreciated...

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to