Module Specific JavaScript

Adding a Source

In order for your manager to load custom JavaScript files just build an array of 1 or more js filenames and add it to the javascriptSrc property of the output object. Use a path starting from the webroot.

    $output->javascriptSrc = array('js/PageView.js','js/packaging.js');

This will add the files js/PageView.js and js/packaging.js to the <head> element of your html file when the manager is loaded.

See Also