Reputation: 319
So What I want to do is use a javascript called nicEdit.js in this one app, but don't want it used in all app that uses the "default.ctp" template.
What am I missing?
Upvotes: 0
Views: 122
Reputation: 5768
To include a script on your page you can use the HTMLHelper
in either a layout or a view, like this:
<?php
echo $this->Html->script('nicEdit');
?>
Upvotes: 1