Views/layouts/js folder
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 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Views/layouts/js folder
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 tho...@saimiris.com 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 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Views/layouts/js folder
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 davidcr...@gmail.com 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 tho...@saimiris.com 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.c omFor 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en