Mohamadou Ndiaye Posted February 27, 2015 Share Posted February 27, 2015 Hello every body I am developing a module a would like to know how to make my own route. I use prestashop 1.6. My problém is i dont know how to pass the p parameter to the url Please help. Thanks public function hookModuleRoutes($params){ return array( 'module-mpsellerslistaddon-sellerslist' => array( 'controller' => 'sellerslist', 'rule' => 'mpsellerslistaddon/sellerslist{:/p}', 'keywords' => array( 'p' => array('regexp' => '[0-9]+', 'param' => 'p'), 'module' => array('regexp' => 'mpsellerslistaddon', 'param' => 'module'), 'controller' => array('regexp' => 'sellerslist', 'param' => 'controller'), ), 'params' => array( 'fc' => 'module', ), ) ); } 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