JoelWebsites Posted April 23, 2015 Share Posted April 23, 2015 I would like to set some variables for my header.tpl file this file is located in my theme folder? can someone guide me how to get some variables assigned to this .tpl file. Where exactly will it be a nice place to write the $this->context->smarty->assign(array()) ? Link to comment Share on other sites More sharing options...
bellini13 Posted April 23, 2015 Share Posted April 23, 2015 what are these variables used for? inside the <head> or inside the <body>? would it be required for every page? Link to comment Share on other sites More sharing options...
JoelWebsites Posted April 24, 2015 Author Share Posted April 24, 2015 Even if its scope would be just fr The header.tpl body tag it would be fine...however... Can i set these variable for all the pages? Link to comment Share on other sites More sharing options...
JoelWebsites Posted April 24, 2015 Author Share Posted April 24, 2015 I got the variables set my using this code in hookHeader() in my module { $smarty = $this->context->smarty; $smarty->assign(array('id_supplier' =>"JOEL", 'JOEL' =>"Fernandes", 'password' =>"123", )); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now