title: Zend Framework 2 Child Regex Routing
body: <p>I have desperately been battling with ZF2, I am trying to create a route tree, so that:</p>
  
  <ul>
  <li>/manual - Goes to the Manual Controller, index action</li>
  <li>/manual/[something] - Goes to the Manual Controller, manufacturer action</li>
  <li>/manual/[something]/[else] - Goes to the Manual Controller, category action</li>
  <li>/manual/[something]/[else]/[foo] - Goes to the Manual Controller, model action</li>
  </ul>
  
  <p>I've used the official docs and several other websites but all I've been able to do is trigger:</p>
  
  <ul>
  <li>/manual - Goes to the Manual Controller, index action</li>
  <li>/manual/[something] - Goes to the Manual Controller Constructor, but not the action...</li>
  </ul>
  
  <p>The other two dont reach the controller at all....</p>
  
  <pre><code>        'manual' =&gt; array(
              'type' =&gt; 'literal',
              'options' =&gt; array(
                  'route' =&gt; '/manual',
                  'defaults' =&gt; array(
                      'controller' =&gt; 'Applicaton\Controller\Manual',
                      'action' =&gt; 'index'
                  ),
              ),
              'may_terminate' =&gt; true,
              'child_routes' =&gt; array(
                  // Segment route for viewing one blog post
                  'manufacturer' =&gt; array(
                      'type' =&gt; 'segment',
                      'options' =&gt; array(
                          'route' =&gt; '/[:manufacturer]',
                          'constraints' =&gt; array(
                              'manufacturer' =&gt; '[a-zA-Z0-9_-]+'
                          ),
                          'defaults' =&gt; array(
                              'action' =&gt; 'manufacturer'
                          )
                      ),
                      'may_terminate' =&gt; true,
                      'child_routes' =&gt; array(
                          'category' =&gt; array(
                              'type' =&gt; 'segment',
                              'options' =&gt; array(
                                  'route' =&gt; '/[:category]',
                                  'constraints' =&gt; array(
                                      'category' =&gt; '[a-zA-Z0-9_-]+'
                                  ),
                                  'defaults' =&gt; array(
                                      'action' =&gt; 'category'
                                  )
                              ),
                              'may_terminate' =&gt; true,
                              'child_routes' =&gt; array(
                                  'model' =&gt; array(
                                      'type' =&gt; 'segment',
                                      'options' =&gt; array(
                                          'route' =&gt; '/[:model]',
                                          'constraints' =&gt; array(
                                              'model' =&gt; '[a-zA-Z0-9_-]+'
                                          ),
                                          'defaults' =&gt; array(
                                              'action' =&gt; 'model'
                                          )
                                      )
                                  )
                              )
                          )
                      )
                  )
              )
          ),
  </code></pre>
  
  <p>Thanks for your help in advance, any help would be greatly appreciated!</p>
  
  <h1>Update:</h1>
  
  <p>Here is my controller action:</p>
  
  <pre><code>public function manufacturerAction() {
      echo 'I am in the manufacturer action!';
      return new ViewModel();
  }
  </code></pre>