In an attempt to keep my scripts maintainable, I\'m going to move each into their own file, organised by controller and action:
// scripts which only apply t
I just had to do page specific inclusion, but I've found a neater way to do it in the documentation. You can just load it into some script block in your default.ctp. And in corresponding view just use HTML helper to push a script:
You can append the script tag to a specific block using the block option:
echo $this->Html->script('wysiwyg', array('block' => 'scriptBottom'));
Which appends to a block.
In your layout you can output all the script tags added to ‘scriptBottom’:
echo $this->fetch('scriptBottom');