Custom jQuery in Single Pages
Permalink
How do I include an external javascript file for a single page?
I have read about adding this to the controller.php file:
but, can't figure out how to add my own .js file.
I have read about adding this to the controller.php file:
public function view() { $html = Loader::helper('html'); $this->addHeaderItem($html->css('jquery.ui.css')); $this->addHeaderItem($html->css('ccm.dialog.css')); $this->addHeaderItem($html->javascript('jquery.ui.js')); $this->addHeaderItem($html->javascript('ccm.dialog.js')); }
but, can't figure out how to add my own .js file.