Just use the PHP's header() like this:admin wrote:Yes the Configurator is based on PHP templating, but I will see what I can do about changing it to .js on downloading.
Code: Select all
header('Content-Disposition: attachment; filename="highslide.js"');
Code: Select all
header('Content-type: text/javascript');
Code: Select all
header('Content-type: application/javascript');