Jump to content

Edit History

bahbvee

bahbvee

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

bahbvee

bahbvee

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.

 

×
×
  • Create New...