When you call use_stylesheet() in your action template, it won't create a <link> tag instantly, but it adds the file to the response's stylesheets. [1] Later, when your output is decorated with the layout, and when the processing gets to the include_stylesheets() call in hour <head> (hope you include css like this) it will add the neccessary css too [2], besides the others defined in your view.yml. If you need action-specific css, use_stylesheet() is the best option you have.
[1] http://trac.symfony-project.org/browser/branches/1.2/lib/helper/AssetHelper.php#L247 [2] http://trac.symfony-project.org/browser/branches/1.2/lib/helper/AssetHelper.php#L553 On Fri, Sep 18, 2009 at 23:27, Georg Gell <geor...@have2.com> wrote: > at 2 c) same reason like 1, I can't put anything in <head> from the > template. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---