title: Codeiginter : undefined property class::$load
body: <p>I am developing a project using codeigniter MVC and facing a weird problem  when creating a controller and try loading a model in its constructor</p>
  
  <pre><code>require_once("secure_area.php");
  class posstatics extends Secure_area{
      function __construct(){
          $this-&gt;load-&gt;model('sale'); //at this i am getting the error saying undefined prop
      }
  }
  </code></pre>
  
  <p>The secure_area.php file extends the CI_Controller the same is working on the other section of the app but this class created nuisance for me :(</p>