title: Using the ZF autoloader to load models
body: <p>I have a simple ZF application (no modules) which works fine when I <code>require</code> classes before I use them. However, I'd like to use the ZF autoloader to load them automatically (which I assumed was default behaviour).</p>
  
  <p>How would I go about doing this? I'm a bit confused by the new(ish) <code>Zend_Application</code> way of doing things. My directory structure is the standard one:</p>
  
  <pre><code>application/
    controllers/
    models/
    views/        
    scripts/
      Bootstrap.php
  </code></pre>
  
  <p>For example removing the require in this method:</p>
  
  <pre><code>class HomeController extends Zend_Controller_Action {
      public function indexAction() {
          $tasks = array();
  
          //require 'models/Task.php';
          $tasks[] = new Application_Model_Task(array(...));
      }
  }
  </code></pre>