Jump to content

Module Route

Mohamadou Ndiaye

Recommended Posts

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.



 public function hookModuleRoutes($params){
                    '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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...