This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
documentation:create_first_theme [2015/06/15 07:08] mooeditor [JavaScript in single page] |
documentation:create_first_theme [2015/06/15 07:09] mooeditor [JavaScript in Template Files] |
||
---|---|---|---|
Line 332: | Line 332: | ||
To "load" the JavaScript file into your site, in the head, add something like this: | To "load" the JavaScript file into your site, in the head, add something like this: | ||
- | * | + | <code html> |
+ | |||
+ | echo $this->Html->script( array( 'file_name.js?' . Configure::read('core.version') ) ); | ||
+ | |||
+ | </code> | ||
==== JavaScript in single page ==== | ==== JavaScript in single page ==== |