It looks like you misplaced a comma somewhere:
-  'attachment; filename='.resultat.'.csv', true)
+ 'attachment; filename=resultat.csv', true)

    gabriel

On May 26, 11:39 am, safa boubekri <[email protected]> wrote:
> hello  i want to generate  cvs which contain  the details  of asscoiation
>
> i put this code:
>
> public function executeCreate(sfWebRequest $request){
>
>   $this->association =
> Doctrine_Query::create()->select('a.*')->from('association
> a')->execute();
>
>     
> $this->getResponse()->setContentType('application/csv-tab-delimited-table', 
> 'charset=UTF-8');
>         $this->getResponse()->addHttpMeta('content-disposition: ',
> 'attachment; filename='.resultat.'.csv', true);
>
>         $this->getResponse()->send();
>
>         $this->setLayout(false);
>
> $this->form->save();
>
> return $this->redirect($this->getRequest()->getReferer());
>
> }
>
> but i have this  result
>
> <b>Notice</b>:  Use of undefined constant resultat - assumed
> 'resultat' in 
> <b>D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas 
> s.php</b>
> on line <b>28</b><br />
>
> thank you

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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