hi, all.
isn't
> $response->setContentType('mimetype/you-want');
> $this->setLayout(false); //if you content-type has 'html' substring
> return $this->renderText(file_get_content($file));
a right way to push a file to user?
E.g., I thought you shouldn't ever call $response->sendContent() inside
action. In most cases.
2009/3/25 Tomasz Ignatiuk <[email protected]>
> After line 592 which is $response->setContent(readfile($sciezka));
>
> There are:
> $response->sendContent();
> return sfView::NONE;
>
> I deleted $response->sendContent();
>
> so there are only:
> $response->setContent(readfile($sciezka));
> return sfView::NONE;
>
> in the end....Still the same error. Headers already sent.
>
>
> >
>
--
With the best regards, Andy.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---