Jump to content

Link to module method from tpl file in prestashop 1.7


diego.cruciani

Recommended Posts

Hi,

In prestashop I'm not able to link a module's controller method from tpl file in modulename/views/template/hook.

The syntax I used for the link inside the tpl file is: <a href="{url entity='module' name='modulename' controller='controllername'}" title="{l s='title'}">.

The module's controller is inside modulename/controllers/front.

The syntax for the controller's name is: modulenameControllerNameModuleFrontController and it extends ModuleFrontController.

It seems to me that everything corresponds to the documentation but when I click the link above I receive the error 500.

Can anyone suggest the resolution of the problem?

Thanks.

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