Jump to content

Use route in prestashop 1.7


S.A

Recommended Posts

Hello 

I write this route. How I can use this route in link 

This is my route function:

public function hookModuleRoutes()

{

return [

'module-mymodule-route' => [

'controller' => 'controllerfile',

'rule' => 'mymodule/validate',

'params' => [

'fc' => 'module',

'module' => 'mymodule'

]

]

];

}

I want call this route in other function, and become link like this:

http://localhost:8807/prestashop_1.7.7.2/?rest_route=/mymodule/validate

Thank you

Link to comment
Share on other sites

  • 2 weeks later...

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...