Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Mathew
Hi, I am working on some controller actions that can only be run from the command line, and if there is a PHP error then cake dumps out error messages wrapped in HTML. When you try to read these error message from the command line it's impossible to see what the error was. Is there a way to

Re: Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Mathew
I think I figured it out. Adding the following to my Cake loader seems to work. define('DISABLE_DEFAULT_ERROR_HANDLING', true); define('CAKEPHP_SHELL', true); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Disabling Cake's error handling for CLI commands.

2008-10-25 Thread Gwoo
you can use Debugger::output('txt') --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL