title: CakePHP call to member function on non-object
body: <p>I have the following Model and Controller files, and when i visit this url, <code>http://....../pois/index</code> i get this error:</p>
  
  <p><code>Notice (8): Undefined property: PoisController::$Poi [APP/controllers/pois_controller.php, line 5]</code></p>
  
  <p><code>Fatal error: Call to a member function find() on a non-object in /home/joecoyle/public_html/app/controllers/pois_controller.php on line 5</code></p>
  
  <p>The Model is this, called <code>poi.php</code>:</p>
  
  <pre><code>&lt;?php
  class Poi extends AppModel {
  
  }
  ?&gt;
  </code></pre>
  
  <p>And the controller is this, named <code>pois_controller.php</code></p>
  
  <pre><code>&lt;?php
  class PoisController extends AppController {
  
      function index(){
              $this-&gt;set('pois',$this-&gt;Poi-&gt;find('all'));
      }
  }
  ?&gt;
  </code></pre>
  
  <p>As i am new to CakePHP i am not sure what is causing this error, as everything seems to be named, right, and i am following the tutorial on the CakePHP site...</p>
  
  <p>Thanks</p>