title: Unable to render template "error"; resolver could not resolve to a file ZF2
body: <p>I have already seen all the links that are already discussed for this topic but could not seem to be working for me, therefor I would like to open this discussion once more and show you my config files as well..</p>
  
  <p>First of all my folder structure is like this:
  <img src="https://i.stack.imgur.com/GFVYt.png" alt="enter image description here"></p>
  
  <p>So far I have module.config.php like this:</p>
  
  <pre><code>    return array(
      'controllers' =&gt; array(
          'invokables' =&gt; array(
              'Album\Controller\Album' =&gt; 'Album\Controller\AlbumController',       
          ),
          'view_manager' =&gt; array(
              'template_map' =&gt; array(
              'layout/layout'           =&gt; __DIR__ . '/../view/layout/layout.phtml',
              'album/album/index' =&gt; __DIR__ . '/../view/album/album/index.phtml',
              'error/404'               =&gt; __DIR__ . '/../view/error/404.phtml',
              'error/index'             =&gt; __DIR__ . '/../view/error/index.phtml',
                  ),
              'template_path_stack' =&gt; array(
                  'album' =&gt; __DIR__ . '/../view',
              )
          )
      ),
  
      'router' =&gt; array(
          'routes' =&gt; array(
              'album' =&gt; array(
                  'type'    =&gt; 'segment',
                  'options' =&gt; array(
                      'route'    =&gt; '/album[/:action][/:id]',
                      'constraints' =&gt; array(
                          'action' =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                          'id'     =&gt; '[0-9]+',
                      ),
                      'defaults' =&gt; array(
                          'controller' =&gt; 'Album\Controller\Album',
                          'action'     =&gt; 'index',
                      ),
                  ),
              ),
          ),
      ),
  
  );
  </code></pre>