У меня есть следующий код в файле default.ctp (projects / customer / lib / Cake / View / Layouts / default.ctp) в теге head:
<script type="text/javascript" src="/home/developer/workarea/projects/customer/app/webroot/js/jquery.autoSuggest.packed.js"></script>
Но js-файл недоступен для браузера: нажатие на ссылку в источнике просмотра для просмотра js-файла приводит к следующей ошибке:
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /home/developer/workarea/projects/customer/app/webroot/js/jquery.autoSuggest.packed.js was not found on this server.</p>
<hr>
<address>Apache/2.2.14 (Ubuntu) Server at localhost Port 80</address>
</body></html>
Но файл js можно получить, непосредственно введя его URL в браузере.