usually you can use helpers in elements only, if you have added them
through your "app controller" (global) $helpers array

otherwise you may have to include them some other way


On 22 Jul., 09:25, Yannis <ikasso...@gmail.com> wrote:
> Hi,
> I'm including an element in my default layout like this:
> $this->element('nav');
> In the top of the element I have a call to the javascript helper to
> include some functions like this:
> $javascript->link(array
> ('jquery-1.3.2.min.js','superfish.js','supersubs.js','menu'),false);
>
> The think is that javascript doesn't work ... however the same thing
> on a view file works like a charm.
> I have the $scripts_for layout called inside another element
>
> What am I doing wrong???
> thanks
--~--~---------~--~----~------------~-------~--~----~
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