Oh, yeah another thing, if you hav eit in the default.thtml, use the second option. For anything other than the default.thtml, use the first option. Unless you want to edit the cake/libs/controllers/ controller.php on line 85 and add 'Javascript' to the default helpers.
On Apr 10, 2:20 am, "joshi" <[EMAIL PROTECTED]> wrote: > hello there, > > I had copied the scriptaculous js in webroot/js/ and i had included > the js file in webroot/cake/libs/view/templates/layouts/default.thtml. > the problem is like its treating .js file as normal files and its > giving javascript error as well as missing controler error. when i > disable the RewriteRule in .htaccess then it will br fine the only > thing is i have to give the full path. can any one help me with the > right way of including js files... > > i have the same problem when i include rico aswell > > Many thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
