see this
http://snook.ca/archives/cakephp/elemental_conditional_content_with_cakephp/

2008/10/17 Robert <[EMAIL PROTECTED]>

>
> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to