Try...
sfContext::getInstance()->getResponse()->addStyleSheet('themes/'.
$theme);
No guarantees, but sfContext is a singleton, so it should work...
On 7 Dec 2008, at 06:14, James wrote:
>
> ok,
>
> In symfony 1.0 if I created a class that extended sfPHPView I could
> add a stylesheet dynamically by calling
>
>
> $this->getContext()->getResponse()->addStyleSheet('themes/'.$theme);
>
> Things seemed to have changed in > symfony 1.1 when I call the same
> above line it doesn't seem to be able to get the context. I am not
> sure how to get the response object in 1.1 from my new class extending
> sfPHPView, can some one point me in the right direction, the API docs
> aren't leading me anywhere.
>
> Thanks
> James
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---