Hi, We get round this problem by wrapping the include_component() call in a slot before include_javascripts() is called, then include_slot() in the position we want i.e.
layout.php <?php slot("foo") ?> <?php include_component("test", "test) ?> <?php end_slot() ?> <html> <head> <?php include_javascripts() ?> </head> <body> <dov class="left><?php include_slot("foo") ?><?div> <div><?php echo $sf_content ?></div> </body> </html> It's not pretty, but it works for us On Nov 16, 11:19 am, Pierrot Evrard <pierrotevr...@gmail.com> wrote: > With more investigations, I have found that components that comes from > action are included before the layout and component from layout after the > layout, that makes sense. > > So, I'm damned. There is no workaround and I need to find something else for > my javascripts that comes with components from the layout. :-( > > Thanks for reading. > > Loops > > 2009/11/16 Pierrot Evrard <pierrotevr...@gmail.com> > > > Hi, > > > View prologue at:http://trac.symfony-project.org/ticket/7579 > > > I have understand the reason why this ticket wont be fix but, I found a > > strange behavior about that... > > > When I call use_stylesheets_for_form() from a component, CSS files from the > > form are included but when I call use_stylesheet() from a component, the CSS > > file is not included. > > > The process is simple: > > > - initialization of the form in the action; > > > - submit form as argument to the component in the action view; > > > - use_stylesheets_for_form() in the component view (if I remove this > > function, CSS files are not included); > > > - display the form in the component. > > > I just wonder how it is possible, I can't follow the entire process behind > > but this strange behavior has not any sense for me. > > > I don't wanna miss respect to anybody, but it makes me so crazy that I have > > to say: what is that hell? > > > My purpose is to find a workaround without re-enabled the sf 1.2 filter and > > without having change all view.yml files. > > > Loops --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---