title: Zend Framework , Model Class not found in Module
body: <p>I've Created an application with these details :</p>
  
  <p>1- zf create project MyApp</p>
  
  <p>2- zf create module admin</p>
  
  <p>3- zf create controller Index 1 admin</p>
  
  <p>MyApp/application/modules/admin/controllers/IndexController.php :</p>
  
  <pre><code>class admin_IndexController extends Zend_Controller_Action
  {
  
      public function init()
      {
          error_reporting(E_ALL);
          ini_set('display_errors', 'On');
      }
  
      public function indexAction()
      {
  
          $aa = new Admin_Model_DbTable_Posts();
  
      }
  
  }
  </code></pre>
  
  <p>application.ini :</p>
  
  <pre><code>[production]
  phpSettings.display_startup_errors = 0
  phpSettings.display_errors = 0 
  includePaths.library = APPLICATION_PATH "/../library" 
  bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  bootstrap.class = "Bootstrap" 
  appnamespace = "Application"
  resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  resources.frontController.params.displayExceptions = 0
  resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  </code></pre>
  
  <p>MyApp/application/modules/admin/models/DbTable/Posts.php :</p>
  
  <pre><code>class Admin_Model_DbTable_Posts extends Zend_Db_Table_Abstract    
  {
      public function init()
      {
  
      }
  }
  </code></pre>
  
  <p>In this point I get the error :</p>
  
  <pre><code>Fatal error: Class 'Admin_Model_DbTable_Posts' not found in /var/www/MyApp/application/modules/admin/controllers/IndexController.php on line 16
  </code></pre>
  
  <p>and When i put this line on application.ini</p>
  
  <pre><code>resources.modules[] =
  </code></pre>
  
  <p>And add bootstratp.php in admin folder with these content</p>
  
  <pre><code>class Admin_Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  {
  
  }
  </code></pre>
  
  <p>After a long period of requesting , i get this error :</p>
  
  <pre><code>HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
  </code></pre>
  
  <p>what should i do to make it work?</p>