I have a cake app on a server on which the database (mysql) has been
going down every couple weeks or so. I think I fixed that problem with
mysql, but here is the small problem I have with cake:

with Config.debug=0 cake seems to silently ignore the fact there is no
database. This makes for some strange behavior - pages aren't
populated with content, menus are empty, searches return nothing.

with Config.debug=1 then you get a lot of WARNING this and that and
then a message about "table not found"

either way, my poor client gets very anxious when they see this and
sends me emails in ALL CAPS

So is there a way, maybe just in my default layout view, to detect if
there is no valid DB connection and then display an message along the
lines of:
http://www.damninteresting.net/content/tech_diff.jpg

thanks guys.
-Sam

--~--~---------~--~----~------------~-------~--~----~
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