I had this problem a while ago and came up with a way to handle it in the AppController:
http://www.thinkingphp.org/2006/07/04/handling-database-connection-errors-in-cakephp/ -- Felix Geisendörfer aka the_undefined -------------------------- http://www.thinkingphp.org http://www.fg-webdesign.de Mariano Iglesias wrote: > Ok then good. How do you check DB connection failure on your code? Using > ConnectionManager and getDataSource()? > > -MI > > --------------------------------------------------------------------------- > > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > > -----Mensaje original----- > De: [email protected] [mailto:[EMAIL PROTECTED] En nombre > de Dr. Tarique Sani > Enviado el: Jueves, 30 de Noviembre de 2006 01:44 a.m. > Para: [email protected] > Asunto: Re: Catching DB connection failure > > I did not tell him how to just setup database.php either... the code I > pointed out catches faulty connects to database and does something > with it (in my case go thru the install procedure) > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
