:( I'll simplify: I want to have the ability to CATCH sql errors (in my error handler) irrespective of DEBUG levels. Currently the only way this happens is in showQuery (trigger_error in dbo_source.php) and that too when DEBUG > 1. This is my opinion should be triggered along with rest of PHP errors ie. >= 1
Can I overload/override any lib functions or classes in order to achieve this. Please help! Rahul J On Jun 17, 2:50 pm, Rahul J <[EMAIL PROTECTED]> wrote: > Because I want to implement my own custom PHP error handling. > As an example, I want to be able to create different output when > DEBUG=0,1,2 or 3. > Currently when DEBUG=0, my custom error handler is not called at all. > The operation stops in cake libs and is not allowed a chance in app. > > Rahul J > > On Jun 16, 10:16 pm, AD7six <[EMAIL PROTECTED]> wrote: > > > On Jun 16, 4:06 pm, Rahul J <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am trying to extend Debugger class (cake/libs/debugger.php) in my > > > app directory in similar way as AppModel/Controller. > > > > class AppDebugger extends Debugger > > > > I've even tried renaming the file debugger.php and app_debugger.php > > > but without luck. Its not working! > > > > I guess its something to do with the way Debugger methods are > > > "invoked" statically, though I'm not sure about this. > > > Can someone please enlighten me and tell me how to do this? > > > > Thanks! > > > Why do you want to do that? > > > AD --~--~---------~--~----~------------~-------~--~----~ 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 PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---