If I would use only one css-file, I wouldn't be able to flexibly change things later.
I solved it this way: The layout explicitly includes all css/js in the head which are needed from partials that are included in the the layout. The good thing about the js/css-helper is, that it will only include a css/js once. Thanks! On Jul 29, 3:11 pm, Massimiliano Arione <garak...@gmail.com> wrote: > On 17 Lug, 20:15, comb <sa...@gmx.net> wrote: > > > I found much on the web regarding the topic, but no solution! :( > > Normally one would include the css and js in the head. But if I call > > > <?php use_javascript('xyz.js'); > > php use_stylesheet('xyz.css') ?> > > > from an partial, they are not included, because the helpers in the > > head of the layout are executed already. > > Putting the helpers to the bottom of the layout includes ALL, but this > > fails caused by html-standards. > > > How can I manage to include the js/css needed from partials in the > > head of the html-document, too? > > You should use just one css file (for performance issues). > Also for performances, you should move include_javascripts from head > to body, just in the end. > > cheers > Massimiliano -- 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