Witam

poniżej kod z tutoriala zend 2 (tworzenie modułu albumy). Dotyczy on routingu z pliku module.config.php. Utworzyłem sobie analogiczny moduł uzytkownicy.
Niestety po użyciu takiego samego zapisu w nowym module, routing przestał działac w starym module albumy. dlaczego??

  1.  
  2. return array(
  3. 'controllers' => array(
  4. 'invokables' => array(
  5. 'Album\Controller\Album' => 'Album\Controller\AlbumController',
  6. ),
  7. ),
  8.  
  9. // The following section is new and should be added to your file
  10. 'router' => array(
  11. 'routes' => array(
  12. 'album' => array(
  13. 'type' => 'segment',
  14. 'options' => array(
  15. 'route' => '/album[/:action][/:id]',
  16. 'constraints' => array(
  17. 'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
  18. 'id' => '[0-9]+',
  19. ),
  20. 'defaults' => array(
  21. 'controller' => 'Album\Controller\Album',
  22. 'action' => 'index',
  23. ),
  24. ),
  25. ),
  26. ),
  27. ),
  28.  
  29. 'view_manager' => array(
  30. 'template_path_stack' => array(
  31. 'album' => __DIR__ . '/../view',
  32. ),
  33. ),
  34. );




Miałem tak samo nazwane kontrolery stąd był problem