(X)HTML documents to browsers, but you might also need to serve AMF data to a Flash object, reply to a remote application via SOAP, or output a CSV file for a user. By default CakePHP view files are written (array) – An array of html attributes. Include a script file(s), contained either locally or as a remote URL. By default, script tags are added to the document inline. If you override this by setting $options['inline'] not in app/webroot/js: echo $this->Html->script('/otherdir/script_file'); You can also link to a remote URL: echo $this->Html->script('https://code.jquery.com/jquery.min.js'); Will output: