Blesta Addons Posted August 4, 2013 Report Posted August 4, 2013 i have searched the docs but no answer for this question i have a js file in the module view directory . how i can add it to the header section or add it to the end of body ? fo css i found a tips with blestaSetHeadTag . i have tried to convert it but not working $(this).blestaSetHeadTag("script", {type:"text/javascript", href: "<?php echo $this->Html->safe($this->view_dir . "js/my.js");?>"}); Quote
Blesta Addons Posted August 4, 2013 Author Report Posted August 4, 2013 i have missed the src instead of href $(this).blestaSetHeadTag("script", {type:"text/javascript", src: "<?php echo $this->Html->safe($this->view_dir . "js/my.js");?>"}); working now Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.