title: CodeIgniter - Model loaded but can't be used?
body: <p>Ok. So I am working on a website using CI. Here is the structure of my controller:</p>
  
  <pre><code>class MY_Controller extends Controller
  class User extends MY_Controller
  class User_Model
  </code></pre>
  
  <p>So, I load the User_Model inside the constructor of the User controller. I know that it is loaded properly because I tried to print something from User_Model and it worked just fine. However, when I use one of the functions in the User_Model from User controller, it started giving me the error. This is the error I received:</p>
  
  <blockquote>
    <p>Undefined property: User::$User_Model</p>
  </blockquote>
  
  <p>Anybody has any idea?</p>
  
  <p>This is extended controller</p>
  
  <pre><code>class MY_Controller extends Controller {
      public function __construct() {
        parent::Controller();
      }
  }
  </code></pre>
  
  <p>This is the controller</p>
  
  <pre><code>class User extends MY_Controller {
      public function __construct() {
        parent::__construct();
        $this-&gt;load-&gt;model('user_model');
        echo $this-&gt;user_model-&gt;validate_user('hartantothio');
      }
  }
  </code></pre>
  
  <p>This is the User_model</p>
  
  <pre><code>class User_model extends Model {
      public function __construct() {
          parent::Model();
      }        
      public function validate_user($user, $pass = '') {
          return '123';
      }
  }
  </code></pre>