The easiest way to do it is make a filter.
On Nov 11, 2:20 am, "Rytis Daugirdas" <[email protected]>
wrote:
> I already have a filter set up, but Thomas' solution is better suited in my
> case. Thanks.
>
> On Mon, Nov 10, 2008 at 7:31 PM, dthomas-wwp <
>
> [email protected]> wrote:
>
> > If you maintain several layouts and don't want to have to update each
> > one individually, another option would be to create an sfFilter
> > subclass. See
> >http://www.symfony-project.org/book/1_1/06-Inside-the-Controller-Laye...
> > for info. If you look at the "Samle Filters" section, you'll see an
> > example of a Google Analytics being injected into each page before it
> > is rendered. You could adapt from this example and use
> > str_ireplace('</head>', $desired_stylesheet_snippet.'</head>',
> > $response->getContent()) to inject your stylesheet just before the
> > close of the head element.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---