hi Ketan, Rich Thanks for those hints. I got it working. Ketan as you said the JS and CSS are independent and there is no internal referring between them. And as Rich said, I place all the CSS files inside CSS folder and JS files within JS folder. However, I left images within CSS folder itself.
Here is how I organized YUI files in CakePHP * Copied assest/skins folder from YUI into CSS/YUI/skins (left images there itself) * copied all functionality folders (such as layout, animation, etc) into JS/YUI and deleted all the files except JS Below is sample code that I think might help member understand how to organize the code (I was trying to recreate a layout manager sample provided on YUI - http://developer.yahoo.com/yui/examples/layout/page_layout.html ) echo $html->css(array( 'yui/reset-fonts-grids', 'yui/skins/sam/resize', 'yui/skins/sam/layout', 'yui/skins/sam/button' ) ); echo $javascript->link(array( 'yui/yahoo/yahoo-min', 'yui/event/event-min', 'yui/dom/dom-min', 'yui/element/element-beta-min.js', 'yui/dragdrop/dragdrop-min.js', 'yui/animation/animation-min.js', 'yui/resize/resize-beta-min.js', 'yui/animation/animation-min.js', 'yui/layout/layout-beta-min.js' ) ); On Jul 15, 7:46 am, Rich <[EMAIL PROTECTED]> wrote: > Javascript files go into the js folder of webroot and Css files can go > in the css folder of webroot or just drop the build folder into the js > of webroot. Its up to you as long as you link them properly in your > layout. > > On Jul 15, 7:04 am, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi > > > I want to use YUI JS and CSS > > > On Jul 15, 4:49 am, Ketan Shah <[EMAIL PROTECTED]> wrote: > > > > well u dont need to use the YUI javascript if you want to use YUI css > > > grids. Both are independant of each other. Just place the yui grid css > > > in the css folder of webroot and link it in your layout file. You can > > > continue using jquery and yui grid. > > > > hope it helps. > > > > -Ketanhttp://www.propertyjungle.in > > > > On Jul 15, 7:47 am, bingo <[EMAIL PROTECTED]> wrote: > > > > > hi all, > > > > > Till date, I have used jquery with CakePHP and it was simple > > > > integrating the two as JQuery contains a javascript file. Now I am > > > > planning to move from JQuery to YUI as YUI has both JS and CSS which > > > > makes developing front end easy. But, I am not sure how to integrate > > > > the two as the default file structure of YUI does not confirm to the > > > > file structure of CakePHP for organizing JS, CSS and images. > > > > > If you are using YUI with CakePHP, I would be thankful if you can tell > > > > me how did you integrate the two. I am mainly looking for information > > > > on how to take apart YUI files (if it is required) and place them into > > > > JS, CSS, and image folders of CakePHP and ofcourse do that without > > > > breaking YUI :-)- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
