Yes Stan, thats exactly what I've been looking for :)
Thanks a lot.

Elemental is also nice, I forgot about it.

Thank You all!


On 17 Paź, 23:31, Stan <[EMAIL PROTECTED]> wrote:
> Both $html->css() and $javascript->link() have an $inline parameter,
> and if you set that to false they will not be displayed inline, but
> added to a $scripts_for_layout variable. Then, you just need <?php
> echo $scripts_for_layout; ?> in your <head>, and you're good to go.
>
> I think that's what you're asking for, right?
>
> Stan
>
> On Oct 17, 4:19 am, Robert <[EMAIL PROTECTED]> wrote:
>
> > I want to add some scripts from views, elements, helpers to the
> > header. Header is in layout of course. What is the proper way to do
> > that?
>
> > Two examples:
>
> > - css - I want to include some css files only when I use Elements or
> > helpers they are used by. Is it any way to do this in cakephp? Or have
> > I include all css files into all pages?
>
> > - javascript - I have on-dom-ready js function in header and I want to
> > add some script to it. I think I can do this by some kind of element
> > filled from view but maybe there is a better way?
>
> > thanks,
> > Robert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to