title: PHP Fatal error: Class 'Album\Controller\AlbumController' not found with zf2
body: <p>I hope someone can help me with this.</p>
  
  <p>I am working my way through Rob Allen's Zend Framework 2 Tutorial .</p>
  
  <p>When I try to go to:</p>
  
  <p><a href="http://zf2-tutorial.localhost/album" rel="nofollow">http://zf2-tutorial.localhost/album</a>
  I get the following error in apache's log (i using Zend Server CE version free):</p>
  
  <p>PHP Fatal error:  Class 'Album\Controller\AlbumController' not found in C:\Program Files\Zend\Apache2\htdocs\zf2-tutorial\vendor\zendframework\zendframework\library\Zend\ServiceManager\AbstractPluginManager.php on line 175</p>
  
  <p>module\Album\module.config.php</p>
  
  <pre><code>&lt;?php
   return array(
  'controllers' =&gt; array(
      'invokables' =&gt; array(
          'Album\Controller\Album' =&gt; 'Album\Controller\AlbumController'
      ),
  ),
  
  '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',
                  ),
              ),
          ),
      ),
  ),
  
  'view_manager' =&gt; array(
      'template_path_stack' =&gt; array(
          'album' =&gt; __DIR__ . '/../view'
          )
         )
    );
  </code></pre>
  
  <p>module\Album\src\Album\Controller\Albumcontroller.php</p>
  
  <pre><code>&lt;?php
   namespace Album\Controller;
  
   use Zend\Mvc\Controller\AbstractActionController;
   use Zend\View\Model\ViewModel;
  
   class AlbumController extends AbstractActionController
  {
  protected $albumTable;
  public function getAlbumTable()
  {
      if (!$this-&gt;albumTable) {
          $sm = $this-&gt;getServiceLocator();
          $this-&gt;albumTable = $sm-&gt;get('Album\Model\AlbumTable');
      }
      return $this-&gt;albumTable;
  }
  public function indexAction()
  {
      return new ViewModel(array(
          'albums' =&gt; $this-&gt;getAlbumTable()-&gt;fetchAll(),
      ));
  }
  
  public function addAction()
  {
  }
  
  public function editAction()
  {
  }
  
  public function deleteAction()
  {
  }
  }
  </code></pre>
  
  <p>My configuration:</p>
  
  <p>Windows xp.
  Zend Server CE Technology Preview (PHP 5.3).</p>
  
  <p>Thank you for your help</p>