Comment to Developer Question: New Module
-
Hello @Wise !
The simplest way is to call the addJs template method in any place before it is necessary.
But if you have in your module own _header.html template file then you may add your files to preloader like:
INSERT INTO `sys_preloader` (`module`, `type`, `content`, `active`) VALUES ('you module name', 'js_system', 'modules/[your name]/[name of your module]/js/|name of your file.js', 1);