All javascript files need to be placed in app/webroot/js and you need
to include the javascript helper.

http://manual.cakephp.org/chapter/helpers about 3/4 down is the
javascript helper documentation

Geoff
--
http://lemoncake.wordpress.com

On Jul 2, 10:28 am, Jim Newfer <[EMAIL PROTECTED]> wrote:
> I have been using jquery for about a month now, and I love it to say
> that least. Although, I cannot seem to figure out the best way to
> incorporate it into my cakephp project, or even to incorporate it at
> all!
>
> When I used jquery before, I just loaded the jquery.js library in the
> header, and then wrote the javascript in the header in between the
> <script></script> tags.
>
> So I have tried to duplicate this in more ways than one, and none of
> them have worked. I have tried in my default layout, using 
> $javascript->link('jquery', false) in the header of my default layout trying 
> to
>
> get it to work, and then placing $scripts_for_layout in content area
> of the default layout. I have tried including both in the view file,
> and combinations of all of these.
>
> Could someone just please explain how and where the files need to go
> when using jquery with cakephp ? Thank you.


--~--~---------~--~----~------------~-------~--~----~
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