Hi everyone,
Using PS 1.6.1, I got an issu with some custom module and with hookModuleRoutes. Here is what I did :
- I install one custom module with some custom URL rewritting it's working perfectly.
- Then I try to install a second custom module with some URL rewritting, the first one URL rewriting is not working anymore but the second do work...
I can't manage to make them both working at the same time 😕
Here is the code for the first module :
public function install() { return parent::install() && $this->registerHook('moduleRoutes'); } public function hookModuleRoutes($params){ $my_link = array( 'module-csm-conf' => array( 'controller' => 'conf', 'rule' => 'c-m-s-{cview}-{product_id}', 'keywords' => array( 'cview' => array('regexp' => '[^/.]+', 'param' => 'cview'), 'product_id' => array('regexp' => '[0-9]+', 'param' => 'product_id'), ), 'params' => array( 'fc' => 'module', 'module' => 'cms', 'controller' => 'conf' ) ) ); return $my_link; }
And the code for the second module :
public function install() { return parent::install() && $this->registerHook('moduleRoutes'); } public function hookModuleRoutes($params){ $my_link = array( 'module-bdrc-bdr' => array( 'controller' => 'bdr', 'rule' => 'b-d-r-c-{cview}-{product_id}', 'keywords' => array( 'cview' => array('regexp' => '[^/.]+', 'param' => 'cview'), 'product_id' => array('regexp' => '[0-9]+', 'param' => 'product_id'), ), 'params' => array( 'fc' => 'module', 'module' => 'bdrc', 'controller' => 'bdr' ) ) ); return $my_link; }
NB : I did try to change the rule but problem still remain the same....
Any idea anyone ? I searched on google and on this forum for hours with no success
Thank you !