title: Zend Framework Routing Technique
body: <p>I would like to know if this method of setting up routing in Zend Framework would be considered a reasonable approach - I am quite new to using ZF.</p>
  
  <p>In my bootstrap file I have a method set up like this:</p>
  
  <pre><code>protected function _initRouting()
  {
      $zfc  = Zend_Controller_Front::getInstance();
      $router = $zfc-&gt;getRouter();
  
      $router-&gt;addRoute(
          'home',
          new Zend_Controller_Router_Route(
              '', 
              array(
                  'controller' =&gt; 'index',
                  'action' =&gt; 'index'
              )
          )
      );
  
      $router-&gt;addRoute(
          'saveStory',
          new Zend_Controller_Router_Route(
              'save-story/:date/:seolink/:saveStory', 
              array(
                  'controller' =&gt; 'story',
                  'action' =&gt; 'index',
                  'saveStory' =&gt; 1
              )
          )
      );
  </code></pre>
  
  <p>etc etc with all my routes.</p>
  
  <p>This works fine and I like the clarity of specifying routes like this but have a nagging feeling that more experienced ZF programmers would tell me that it is not the best way and that I should not do it in the bootstrap and that I should specify the routes in a seperate config file. If this is the case what form would the config file take and how and where would I read it.</p>
  
  <p>Any advice would be appreciated....Because my technique works this question is more a stylistic question - what is the most 'elegant' approach.....Thanks</p>