You can't use JavascriptHelper::link from an element to insert scripts
into the header; this is a fundamental constraint imposed by the two-
step render engine ( http://martinfowler.com/eaaCatalog/twoStepView.html
).

There are some ways around this using the class registry, but that's
mostly meant for use in custom helpers that need to insert scripts
into the header.

-jperras.

On Jul 23, 2:46 am, Yannis <ikasso...@gmail.com> wrote:
> Thanks guys,
> The thing is that scripts_for_layouts is in an element that I include
> in the layout.
> And this is for the simple reason that the head elements of the page
> are included there.
>
> I will try and include the scripts_for_layouts outside the head of the
> html page.
--~--~---------~--~----~------------~-------~--~----~
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 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to