title: Yii: How to catch the error and redirect if DB connection failed
body: <p>Sometimes my app fails to connect to my db.</p>
  
  <p>How do I catch and redirect to a statis page?</p>
  
  <p><code>
  CDbConnection failed to open the DB connection: SQLSTATE[42000] [1049] Unknown database 'given_db'
  </code></p>