But the problem is that I use a default layout (in view/layout/default.ctp), where i define the <head>, <title>, javascript, css declarations. But now, I just want to add a javascript or css for just a particular view, not all the views (in which case, i can just use $javascript->link() and html->css() in the view/layout/default.ctp). how would i do this without having to use another layout?
On Feb 4, 2008 2:29 PM, Joel <[EMAIL PROTECTED]> wrote: > > Thanks, my bad. > > Sam Sherlock wrote: > > $html->css for stylesheets > > > > On 04/02/2008, Joel <[EMAIL PROTECTED]> wrote: > > > > > > > > > Use the $javascript->link() and $css->link() helpers, respectively. > > > > > > bob wrote: > > > > similarly, for css files? > > > > > > > > On Feb 4, 2008 12:37 PM, bob <[EMAIL PROTECTED]> wrote: > > > > > > > > > i have a javascript .js file that i want to add to just one of my > > > views, > > > > > (not in the default layout). how do i do this? thanks > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
