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