Put $scripts_for_layout in your (X)HTML head. Then, from any view you can include JS/CSS by setting the $inline option to false.
$javascript->link('awesome_js_file', false); and $html->css('most_awesome_css', null, array(), false); -Joel. On May 12, 3:45 pm, MarcS <[EMAIL PROTECTED]> wrote: > 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---