I do this by rendering my HTML header with an element, and then passing it 
parameters from the controller.


----- Original Message ----
From: MarcS <[EMAIL PROTECTED]>
To: CakePHP <cake-php@googlegroups.com>
Sent: Monday, May 12, 2008 3:45:23 PM
Subject: include CSS and Javascript into layout 'on demand'


Is it possible to include CSS and Javascript into a layout based on
what the specific view requires?
I would like to use one layout for all my views but there are some
javascript libraries that are onl required for very few actions.

I remember reading that this is possible a while back but I can't seem
to find anything about it.
Could someone provide some pointers where to look for info about this?

thanks in advance,
Marc


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--~--~---------~--~----~------------~-------~--~----~
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