I've been using cake 1.1 for a wile. Now I'm trying to migrate to cake
1.2 (latest version) and I have this problem.
My app is in /var/www/test/app/
I'm trying to include a js file from my layout (default.ctp). The js
file is in app/webroot/js/test.js
my code in the layout is
....
echo "<head>";
echo "\n" . $javascript->link(array("test"));
echo "</head>";
....

This code does not include the file. It tries to include the file from
js/test.js and this does not work.

if I manually include the file in the layout it works ok:
....
echo "<head>";
echo "\n<script type=\"text/javascript\" src=\"/test/app/webroot/js/
test.js\"></script>";
echo "</head>";
....

I don't think this could be a bug because this is something trivil, so
I think I'm doing something wrong. Any advice?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to