On Fri, May 8, 2009 at 11:56 AM, toby1kenobi <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---