I use the php functions for connecting to the database and then redirect if it fails to a static page, usually from bootstrap.php if I find that it becomes a problem on a host.
Sam D -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/ http://blog.samdevore.com/cakephp-pages/i-cant-bake/ On Tue, Aug 26, 2008 at 10:51 AM, bbf <[EMAIL PROTECTED]> wrote: > > My flaky webhost's MySQL process goes down randomly every few weeks. > > Cake doesn't throw an error, but instead gives a "Missing Table" error > and displays a weird page (the layout nested 4 times). > > > How and where would I test the db connection myself? > > (I want to show my own pretty "Temporarily down for maintenance" msg > -- I know how to throw and show the error, I just don't know where to > put the code that tests the connection) > > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
