..and for mysql connection errors,
you can test in  __construct ()
if  $db->connection is empty...

On Oct 29, 9:52 pm, majna <[EMAIL PROTECTED]> wrote:
> You can put in app_model
> something like (this is from cake 1.1 see 1.2 API if changed):
>  function onError()
> {
>                 $db = & ConnectionManager::getDataSource('default');
>
>                 if (isset($db->error))
>                 {
>                         //log here  $db->error
>                 }
>
> }
>
> On Oct 29, 6:51 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > I have this question.
> > I would have in my production system  ( debug=0 ) a logging system for
> > php error and MySQL error.
> > For example if in a save operation of a model there is a MySQL error I
> > would that the user doesn't see anything but  that in the log file
> > something is registered.
> > How can I do it?
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to