I believe it is supposed to contain layout files for any action you
have that outputs javascript (using parseExtensions). You can return
pure javascript from ajax calls and have that code executed in the
browser.

I have only ever used rss, xml, and a few of my own like xls and
mms... never js, though.

/Martin



On Dec 1, 1:40 pm, Dave <[email protected]> wrote:
> I believe that is there so when you are coding your layouts, if you link to
> js/whatever.js it will redirect to the proper app/webroot/js folder
>
>
>
> On Tue, Dec 1, 2009 at 7:01 AM, thomaus <[email protected]> wrote:
> > Hi,
>
> > Just a simple question. I can't figure out why is there a default
> > Views/layouts/js/ folder in Cake. I thought that all the Javascripts
> > should go into webroot/js/
>
> > Does anybody know?
>
> > Thanks in advance.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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]<cake-php%[email protected] 
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to