title: Codeigniter Access DB object in another model
body: <p>In Codeigniter models is there a way to make this work?</p>
  
  <pre><code>class Mdl_my_model extends CI_Model
  {
  protected $my_db = NULL;
  
  public function __construct()
  {
      parent::__construct();
      $this-&gt;my_db = $this-&gt;load-&gt;database('my_db', TRUE);
  }
  
  public function some_cool_method()
  {
      $this-&gt;load-&gt;model('Mdl_other_model');
      $this-&gt;Mdl_other_model-&gt;other_method();
  }
  }
  </code></pre>
  
  <p>Can model below make use of the $my_db object or do I have to load db again?</p>
  
  <pre><code>class Mdl_other_model extends CI_Model
  {
  
  public function __construct()
  {
      parent::__construct();
  }
  
  public function other_method()
  {
      //is it possible to use the $my_db object here?
  }
  }
  </code></pre>