We have used slots as a way to do that so that you can create a slot at the
end of your layout (just before </body>) and your partials can then load the
javascript it needs into that slot.

On Wed, Nov 3, 2010 at 11:55 AM, JoJo <jojoyangd...@gmail.com> wrote:

> Hello everyone,
>
> I have a question not very technical but quite structural.
>
> In my modules, I use some partials to complete the layout. And in these
> partials, I use some javascript functions. So when page loaded, these
> javascript functions are added in the middle of template.
>
> I think that it is not very clean do display js in that way, because
> normally they should be added between <head></head>, but these js functions
> are spécificaly for its partials and in several js functions, i need the
> objects passed from action or component.
>
> So can anyone suggest what is the best way to implement these javascript
> functions please.
>
> Thanks in advance.
>
> Best Regards,
>
> JoJo
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to