On Tue, 6 Jan 2009, Alexandru Stanoi wrote:

> Philipp Kamps wrote:
> > 
> > Here is what I tried so far:
> > 
> > class ReportsExportView extends ezcMvcView
> > {
> >    
> >     function createResponse()
> >     {
> >         $resultBody = 'csv content';
> > 
> >         $result = $this->result;
> > 
> >         // set $result->status ???
> >        
> >         $return = new ezcMvcResponse( $result->status, $result->date,
> >             $result->generator, $result->cache, $result->cookies,
> >             $result->content, $resultBody );
> >        
> >         // set $return->status ???
> 
> $content = new ezcMvcResultContent(); // see MvcTools/src/structs
> $content->type = 'text/cvs';
> // other properties can be set like charset, language, encoding
> // but it seems it does not handle Content-Disposition: attachment
> $return->content = $content;

Yup, I think we've missed that one and need to add it. I added a feature 
request for it:

http://issues.ez.no/IssueView.php?Id=14250

regards,
Derick
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to