title: Fatal error: Call to a member function get() on a non-object in C:\wamp\www\ci\application\models\site_model.php on line 6
body: <p>Hello I just watched the first/Day1 screencast on Nettuts "CodeIgniter from scracth" And I'm already running into an error I don't understand. Here's a screenshot <a href="http://i39.tinypic.com/14mtc0n.jpg" rel="nofollow">http://i39.tinypic.com/14mtc0n.jpg</a></p>
  
  <p>The code in my models\site_model.php is the same as the screencast</p>
  
  <pre><code>   models\site_model.php
  
     class Site_model extends CI_Model {  
     function getAll() {
      $q = $this-&gt;db-&gt;get('test');        
      if($q-&gt;num_rows() &gt; 0) {
          foreach ($q-&gt;result() as $row) {
              $data[] = $row;
          }
      return $data;
      }
  }
  </code></pre>
  
  <p>And the controller controllers\site.php </p>
  
  <pre><code>   class Site extends CI_Controller {
  function index(){
      $this-&gt; load-&gt; model('site_model'); 
      $data['records'] = $this-&gt; site_model-&gt; getAll();
      $this-&gt; load-&gt; view('home', $data);
  
  }   
   }
  </code></pre>
  
  <p>And here's my db info incase</p>
  
  <pre><code> $db['default']['hostname'] = 'localhost';
   $db['default']['username'] = 'root';
   $db['default']['password'] = '';
   $db['default']['database'] = 'ci_series';
  (rest is default below)
  </code></pre>
  
  <p>Thank you</p>