natiaz Posted April 11, 2016 Share Posted April 11, 2016 HI, I'm learning to develop a module and I want that the module URL structure works like this: http://myshop/es/poblaciones/ and a subpage http://myshop/es/poblaciones/tienda Is it possible? I've manage to get this URL: http://myshop/es/poblaciones/ by creating a front controller named as I like to show in the URL (poblaciones.php), but I can't get the subpage. My hookModuleRoutes is this: public function hookModuleRoutes() { return array( 'module-ntz_poblaciones-poblaciones' => array( 'controller' => 'poblaciones', 'rule' => 'poblaciones{/:module_action}', 'keywords' => array( 'module_action' => array('regexp' => '[\w]+','param' => 'module_action') ), 'params' => array( 'fc' => 'module', 'module' => 'ntz_poblaciones', 'controller' => 'poblaciones' ) ) ); } If I've unset the friendly URL's and go to my module link: http://myshop/index.php?fc=module&module=ntz_poblaciones&controller=poblaciones I get an error: Dispatcher::createUrl() miss required parameter "module_action" for route "module-ntz_poblaciones-poblaciones" at line 661 in file classes/Dispatcher.php Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now