I started using libraries like jQuery or Twitter Bootstrap with composer. Now I want to load the jquery.min.js
from /vendor/components/jquery/
into my /src/Template/Layout/default.ctp
.
How can I do that? Because using a normal uri doesn't work:
<script type="text/javascript" src="/vendor/components/jquery/jquery.min.js"></script>
Cake doesn't interpret the file as a file. It looks for a Controller:
Error: VendorController could not be found.
How can I load the JS-file properly?