Jump to content

Get $prestashop.modules in tpl


Recommended Posts

Hello!

I've made a little module so i could easily save some variable's using:

 hookActionFrontControllerSetVariables() 

so that i can access them in my .tpl files like: {$modules.mymodule.var_name}

Another module that i am using assigns his own template variables with $this->smarty->assign($templateVars). I want to send the variables set in my own module with them but i dont really know how to get that $modules object in there. Can someone point me in the right direction?

Much appreciated.

 

tldr: how can i get $prestashop.modules object in another module's php file.

edit: im working in 1.7.6.5

Edited by bahbvee (see edit history)
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...