title: Handling DB connection errors in Cakephp
body: <p>Currently I am using dynamic database switching in Cakephp from the database config file. I am switching based on the subdomain ie: TEST.mysite.com and PROD.mysite.com.</p>
  
  <p>How and where is the best place to test and redirect if there is a database connection?</p>
  
  <p>Thanks,</p>
  
  <p>kSeudo  </p>