title: Zend Framework modular app, can't load models for each module, autoloading models?
body: <p>Is there a way to have models for each module? I have 3 modules, one is a "contacts" module.
  I created a model for it in modules/contacts/models/Codes.php
  <strong>Codes Controller</strong></p>
  
  <pre><code>class Contacts_CodesController extends Zend_Controller_Action
  {
  
      public function init()
      {
          /* Initialize action controller here */
      $this-&gt;view-&gt;messages = $this-&gt;_helper-&gt;flashMessenger-&gt;getMessages();  
  
      }
  
      public function indexAction()
      {
  
      $codesTable = new Contacts_Model_Codes();
  
      }
  </code></pre>
  
  <p><strong>Codes Model:</strong></p>
  
  <pre><code>class Contacts_Model_Codes extends Zend_Db_Table
  {
      protected $_name = 'codes';
  }
  </code></pre>
  
  <p><strong>The error I get:</strong>
  Fatal error: Class 'Contacts_Model_Codes' not found in /Applications/MAMP/htdocs/zf_site/application/modules/contacts/controllers/CodesController.php on line 26</p>
  
  <p>thanks</p>