title: Unable to render template zf2
body: <p>I have created new module called 'currency' and configured routes in module.config. It is working fine. 
  After that I have added new controller called CrateController for currency rates.And also created forms, models and view files. 
  But It is not routing correctly. </p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "currency/crate/index"; resolver could not resolve to a file....</p>
  </blockquote>
  
  <p>Any clue to check this out will be helpful. </p>
  
  <p>My module.config file as follows.</p>
  
  <pre><code>return array(
  'controllers' =&gt; array(
      'invokables' =&gt; array(
          'Currency\Controller\Currency' =&gt; 'Currency\Controller\CurrencyController',
          'Currency\Controller\Crate' =&gt; 'Currency\Controller\CrateController',
      ),
  ),
  
  // The following section is new and should be added to your file
  'router' =&gt; array(
      'routes' =&gt; array(
          'currency' =&gt; array(
              'type'    =&gt; 'segment',
              'options' =&gt; array(
                  'route'    =&gt; '/currency[/:action][/:currency_id]',
                  'constraints' =&gt; array(
                      'action' =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                      'currency_id'     =&gt; '[0-9]+',
                  ),
                  'defaults' =&gt; array(
                      'controller' =&gt; 'Currency\Controller\Currency',
                      'action'     =&gt; 'index',
                  ),
              ),
          ),
         'crate' =&gt; array(
              'type'    =&gt; 'segment',
              'options' =&gt; array(
                  'route'    =&gt; '/crate[/:action][/:c_rate_id]',
                  'constraints' =&gt; array(
                      'action' =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                      'c_rate_id' =&gt; '[0-9]+',
                  ),
                  'defaults' =&gt; array(
                      'controller' =&gt; 'Currency\Controller\Crate',
                      'action'     =&gt; 'index',
                  ),
              ),
          ),           
      ),
  ),
  </code></pre>