Look into onError - Called when a DataSource-level error occurs. See http://book.cakephp.org/view/687/onError and source at http://api.cakephp.org/view_source/model/#line-2778
Enjoy, John On May 5, 9:12 am, K3 <[email protected]> wrote: > when i try to delete wrong row from DB able i get "SQL Error: 1451: > Cannot delete or update a parent row: a foreign key constraint fails", > but if debug=0 it shows PAGE NOT FOUND error. How can i trap this > error and show some user friendly msg? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
