If you look at the api, you'll see that $html->css creates a link to a pre-existing style sheet in webroot/css. $scripts_for_layout is for javascript using the javascript helper.
On Oct 6, 12:02 pm, Marc Campeau <[EMAIL PROTECTED]> wrote: > Yeah sorry, I thought I should have put that in the message. > > I'm running off the latest code from the SVN Repository, checked it > out last week, Friday if I remember well. > > Thanks for the heads up, > > Marc > > On Oct 6, 12:52 pm, "Lamonte(Scheols/Demonic)" <[EMAIL PROTECTED]> > wrote: > > > Just to help others who might help you, are you running the latest version > > of Cake? > > > On Mon, Oct 6, 2008 at 10:34 AM, Marc Campeau <[EMAIL PROTECTED]> wrote: > > > > Hi everyone, > > > > I'm having trouble with the HtmlHelper and the $scripts_for layout. > > > Basically, I use the helper to add CSS inline ($html- > > > >css(array('someCss'), null, null, false);) from within the different > > > elements (/views/elements/) that the view needs to render. I would > > > have expected these CSS to show up in the HTML Head by echoing > > > $scripts_for_layout in default.ctp but unfortunately they don't? If I > > > echo the CSS inline then they do show up in the markup. > > > > Anyone knows what I'm doing wrong? > > > > Side notes: > > > Doing the $html->css() inline call from /views/default.ctp doesn't > > > work either. > > > Doing the $html->css() inline call from the view that's rendered (/ > > > views/users/login.ctp for instance), works. > > > > Thanks for taking the time to read this, > > > > Marc > > > -- > > Join cleanscript.com Come here for professional PHP coding. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---