title: Error in codeigniter Call to undefined method CI_Loader
body: <p>I am new user of codeigniter i coded in modle and when i load the model in controller it gave me earror</p>
  
  <p>the error is: 
  <strong>Fatal error: Call to undefined method CI_Loader::modle() in C:\wamp\www\CI\application\controllers\Test.php on line 10</strong></p>
  
  <p>My model code is:</p>
  
  <pre><code>&lt;?
  class Sitemodle extends CI_Model
  {
  
      function getall()
      {
          $this-&gt;load-&gt;database();
          $query=$this-&gt;db-&gt;get('2');
          if ($query-&gt; num_rows()&gt;0) {
              foreach ($query-&gt;result() as $row ) 
              {
                  $data[]=$row;
              }
          return $data;  
          }
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>and controller code is this:</p>
  
  <pre><code>&lt;?php
  class Test extends CI_Controller{
  
  
   function index()
      {
      $this-&gt;load-&gt;modle('Sitemodle');
  
      $this-&gt;load-&gt;view('home');
      }
  }
  </code></pre>