On Dec 17, 2007 10:28 AM, squidliberty <[EMAIL PROTECTED]> wrote: > > I have on occasion had problems with my hosting during which MySQL is > not accessible. The result is that CakePHP renders a malformed page > and (if Debug is in use) throws a number of errors (such as "Too many > connections"). In this sort of situation, some CMS (eg. Joomla!) will > automatically throw up a "This site is down" page. Can anyone tell me > how this might be done with CakePHP? I assume that there is some way > to check for a proper database connection and generate an error > message if one cannot be established. Any advice appreciated!
It's called 'write code that actually checks for errors'. This is an issue for any application, and I cannot think of any framework that automatically gives you that kind of functionality. What you call 'automatic' is the result of a forward-thinking developer who made a commitment to proper error handling. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
