lsantos2015 Posted February 22, 2014 Posted February 22, 2014 Hello. I'm coding Back Office (BO) modules, and I need to include java functions on the .tpl file. I had aready created new BO tabs, new AdminPageController, and also a new 'content.tpl' file, in the respective folder to present content and allow interaction. Now, this .tpl file must work with some blabla() functions on java. Where can I include xpto.js files when developing on BO ? I can include the code on {literal}, haven't tried it, but probably it works, but as there are a few functions, I need to place them on the correct place. Can you give me a help ? Best Regards Luis Share this post Link to post Share on other sites More sharing options...
vekia Posted February 22, 2014 Posted February 22, 2014 you can use $this->context->controller->addJS(); function to include js file do it for example in public function hookActionAdminControllerSetMedia($params) Share this post Link to post Share on other sites More sharing options...
lsantos2015 Posted November 24, 2014 Posted November 24, 2014 Hello.. Sorry I didn't reply before.. This is solved.. Many thanks. Regards Share this post Link to post Share on other sites More sharing options...
vekia Posted November 24, 2014 Posted November 24, 2014 thank you for confirmation even after several months later it's worth to know that problem was solved i marked topic title as solved too. with regards Milos Share this post Link to post 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