Issue in Create new Controller in Zend Framework 2 (ZF2)
I am using ZF2 Skeleton app. To create a new controller in a existing Module, I modified the module.config.php file like this: <?php return array( 'controllers' => array( 'invokables' => array( 'Album\Controller\Album' => 'Album\Controller\AlbumController', // WORKING FINE 'Album\Controller\Photo' => 'Album\Controller\PhotoController', // I ADDED THIS ), ), // The following section Was PREVIOUSLY THERE 'router' => array( 'routes' => array( 'album' => array( 'type' => 'segment', 'options' => array( 'route' => '/album[/:action][/:id]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*'