A partial is what it is, just a piece of code that appears where you called it; you should have 1 .js file per action. Think about 4 partials for 1 action, it is better to have 1 js file to refer that action instead 4 js pieces of code.
This is for sure an advice only ;) 2010/11/3 JoJo <jojoyangd...@gmail.com> > 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 > -- 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