title: How to set up a zend modular application
body: <p>im trying to set up a zend modular application my actual directory structures is like :</p>
  
  <pre><code>\Application
  \Application\modules
  \Application\modules\admin
  \Application\modules\admin\...
  \Application\modules\admin\Bootstrap.php
  \Application\modules\front
  \Application\modules\front\...
  \Application\modules\front\Bootstrap.php
  \...
  </code></pre>
  
  <p>And my application.ini file contains :</p>
  
  <pre><code>[production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  includePaths.library = APPLICATION_PATH "/../library"
  bootstrap.path = APPLICATION_PATH "/modules/front/Bootstrap.php"
  bootstrap.class = "Front_Bootstrap"
  appnamespace = "Application"
  
  resources.modules[] =
  resources.view[] =
  
  ;FrontController Resource Settings
  ;resources.frontcontroller.controllerDirectory = APPLICATION_PATH "/modules/front/controllers"
  resources.frontController.defaultController = "index"
  resources.frontController.defaultAction = "index"
  resources.frontController.defaultModule = "front"
  resources.frontController.prefixDefaultModule = true
  resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  resources.frontController.params.displayExceptions = 1
  
  
  resources.db.adapter = "pdo_mysql"
  resources.db.params.host = "localhost"
  resources.db.params.username = "root"
  resources.db.params.password = "test"
  resources.db.params.dbname = "dbname"
  
  ;resources.layout.layoutPath = APPLICATION_PATH "/layouts/front/scripts"
  resources.layout.layout = "layout"
  
  
  [staging : production]
  
  [testing : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  
  [development : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  resources.frontController.params.displayExceptions = 1
  </code></pre>
  
  <p>when i'm trying to access <a href="http://mywebserver/appname/public/" rel="nofollow">http://mywebserver/appname/public/</a> i get this error :</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'No default controller directory registered with front controller' in C:\wamp\www\go\library\Zend\Application\Bootstrap\Bootstrap.php on line 91
  </code></pre>
  
  <p>anyone can help plz !
  thnx in advance.</p>