title: Zend Framework module structure routing
body: <p>I have the following structure of my system:</p>
  
  <pre><code>application/
     configs/
       application.ini
       router.php
     layouts/
     modules/
        default/
          controllers/
          forms/
          models/
          views/
          Bootstrap.php
        test/
          controllers/
          forms/
          models/
          views/
          Bootstrap.php
      Bootstrap.php
  </code></pre>
  
  <p><strong>routes.php file:</strong></p>
  
  <pre><code>$useDefaultRoutes = false;
  
  $routes['index'] = new Zend_Controller_Router_Route(
                         '', 
                         array('controller' =&gt; 'index',
                         'action' =&gt; 'index', 
                         'module' =&gt; 'default'));
  </code></pre>
  
  <p><strong>Main Bootstrap.php file</strong></p>
  
  <pre><code>class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
  {
  
      public static function setRoutes(){
  
          $frontController = Zend_Controller_Front::getInstance(); 
          $router = $frontController-&gt;getRouter();
  
          $routes = array();
  
  
          if(file_exists('../application/configs/routes.php'))
          {
  
              require_once "configs/routes.php";
  
              foreach($routes as $routeName =&gt; $routeValue){
                  $router-&gt;addRoute($routeName, $routeValue);
              }
  
              if($useDefaultRoutes == false)
              {
                  $router-&gt;removeDefaultRoutes();
              }
  
          }
  
      }
  
      protected function _initFrontModules() {
          $this-&gt;bootstrap('frontController');
          $front = $this-&gt;getResource('frontController');     
          $this-&gt;setRoutes();
      }
  
  }
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>When I type in browser <a href="http://address" rel="nofollow">http://address</a>, then default module launches IndexController and 
  everything seems to be ok. But if I type <a href="http://address/test" rel="nofollow">http://address/test</a>, then I get error - page not found. If I remove routes.php file, then it works. So what is the problem with my routing ?</p>
  
  <p>Your help would be appreciated.</p>