$this->getResponse()->setContentType('image/jpeg');
$this->renderText($data[0]['Version'][0]['small_logo_data']);
return sfView::NONE;

This should do the trick as headers are not sent before you return from 
the action.

Also, symfony mod_rewrite rules exclude any image extension from going 
through the framework so you will just have to live with <img 
src='general/image.html'> . Do you see a problem with that?

Regards,
Kupo

Ian P. Christian wrote:
> I know this is wrong:
>
>     $this->getResponse()->setContentType('image/jpeg');
>     echo $data[0]['Version'][0]['small_logo_data'];
>     return sfView::NONE;
>
> What's the right way?
>
> Also, all my URLs have .html on the end, is the only way to get this to
> appear as  site.com/logos/aurl.png to use mod_rewrite? but then the
> routing system can't generate URLs for it...
>
>
>
>
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to