I have following codes for routes.
$moduleName = "usermanagement"; $router->add('/'.$moduleName,array( 'module' => $moduleName, 'namespace'=>'Mynamespace\\'.ucwords($moduleName).'\Controllers\\', 'controller'=>"index", 'action' => 'index' ));
The url http://www.mydomain.com/usermanagement works pretty well. But however I have do a little change in url so that http://www.mydomain.com/user-management can be used to access the module. I have seen allowing dashes in actions but haven't found anything like such for modules.
Can anybody help me on this??