If db is down, you must redirect to external page in webroot. if app is not in root, use for 1.x $Dispatcher = new Dispatcher(); $base = $Dispatcher->baseUrl(); $this->redirect($base.'/error_db.php'); exit();
On Dec 24, 1:45 am, Rich Vázquez <[EMAIL PROTECTED]> wrote: > On Sun, 2007-12-23 at 16:14 -0800, squidliberty wrote: > > Yep, adding a redirect to AppController was my inclination as well. > > However, the tricky part is testing for a database connection. Anyone > > have any idea how best to do this? Seems like it shouldn't be very > > difficult - I just don't have a grasp on the esoteric inner-workings > > of the framework. Thanks! > > Remember the original cake install has this - the first thing it does is > look for the database configuration and connectivity. > > The logic is in: > /cake_1.1.18.5850/cake/scripts/templates/views/home.thtml > > -- > Rich Vázquez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---