Whenever I am trying to define 2 scripts this way:
echo $this->Html->script(array('jquery', 'prototype'));
only prototype is working.
When I do it this way:
echo $this->Html->script(array('prototype', 'jquery'));
only jquery is working.
How do I fix it so both are working?
That is because they both use the
$variable, and the second script overwrites the first.Try creating a script for the middle that only contains:
Then do: