in AppController:: beforeFilter() method or __construct
you can test connection like:
$db =& ConnectionManager::getDataSource('default');
if (empty($db->connected))
{
redirect somewhere...
}
On Jan 7, 8:29 am, Kyle Decot <[email protected]> wrote:
> How would I go about displaying a page when cakePHP cannot connect to
> the database. Would I do this in the AppController? Thank you for any
> help you can provide?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---