It's slightly odd eh?
Coincidentally, I've just run int0: > ...So it's not as strange as, say, the > $inline param for the css() method. Now *that* makes no sense. What is going on there?! According to the docs it seems like I should be able to create a link tag in the head of my document by setting inline to false, but this appears to result in nothing being rendered at all...a 'feature'?! On May 8, 5:24 pm, brian <bally.z...@gmail.com> wrote: > On Fri, May 8, 2009 at 11:56 AM, toby1kenobi <toby.math...@gmail.com> wrote: > > > Ah, no it doesn't - it does seem strange. > > Good gravy! It doesn't. It just returns the data as CSS rules. > > I was about to say that this seems absolutely useless, except to waste > the PHP parser's time, but then realised that it's meant to be used > internally when building tags. So it's not as strange as, say, the > $inline param for the css() method. Now *that* makes no sense. > > Sorry, I was sure I'd used style() before but I just checked the app I > was thinking of and realise now that I didn't. > > I guess you could create your own helper. Look at the css() method and > how it uses tag(), then does: > > $view =& ClassRegistry::getObject('view'); > $view->addScript($out); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---