Erm, it seems like the $scripts_for_layout var is populated before the elements are rendered so it doesn't contain the scripts which you add it in an element.
My scenario: /posts/view/123 and in view.ctp: $this->element('456') and in 456.ctp: $javascript->link('somefile', false) It doesn't work. It does if I link it in view.ctp as per normal though. Anyone had similar issues or is this meant to be? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---