title: Convenient Way to Load Multiple Databases in Code Igniter
body: <p>I've added the appropriate configuration arrays to database.php and they work, however, I would like an easier way to access the different databases. Right now I have to do something like this in every controller method:</p>
  
  <pre><code>function index(){
      $BILLING = $this-&gt;load-&gt;database('billing', TRUE);
      $INVENTORY = $this-&gt;load-&gt;database('inventory', TRUE);
  
      $data['billing'] = $BILLING-&gt;get('stuff');
      $data['inventory'] = $INVENTORY-&gt;get('stuff');
  }
  </code></pre>
  
  <p>I'd like to be able to put those first two lines in some sort of before filter or pre_controller hook.</p>