I\'m currently using the ZendFrameworkSkeleton application from Git and am trying to utilize the module part of it to have a multitude of modules, changeable by URL like so:
To change routing you need to edit Application/confid/module.config.php. Find there and change to
'options' => array(
'route' => '/[:module/[:controller[/:action]]]',
'constraints' => array(
'module' => '[a-zA-Z][a-zA-Z0-9_-]*',
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*'
),
'defaults' => array(
'module' => 'Application',
'controller' => 'index',
'action' => 'index'
)
)
You can see I added /[:module and deafults and constraint