title: Load a model in a Codeigniter library
body: <p>I have this piece of code:</p>
  
  <pre><code>class MY_Language extends CI_Language {
  
     function MY_Language()
     {
         parent::CI_Language();        
  
         $CI =&amp; get_instance();
  
         $CI-&gt;load-&gt;model('language_model');
  
         $languages = $this-&gt;language_model-&gt;get_languages();
  
         print_r($languages);
     }
  
  }
  </code></pre>
  
  <p>But I keep getting "Fatal error: Call to undefined function get_instance() in C:\xampp\htdocs\application\libraries\MY_Language.php  on line 44". Any ideas?
  Thanks in advance!</p>