I’m making a self-hosted downloadable web app using CodeIgniter and I’m looking for a way to automatically redirect to the installer if the database config file has not been filled out.
The problem is that CI errors out when it tries to connect to the DB (which it obviously can’t because it’s trying to load the database config file before it’s been filled out) before I can ever redirect. Is there a way that I can catch the Database Error and do some custom code (like a redirect) before it’s displayed?