> One problem I found with this is that using $html->url('js/someJS');
> will echo /pages/myView/js/someJS instead of /js/SomeJs
$javascript->link('SomeJs');
Note that you don't include the js directory, nor the extension. If
you hava a JS file in a subdirectory (eg.
webroot/js/lib/some-other.js):
$javascript->link('lib/some-other');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---