Re: [symfony-users] Re: cvs

2010-05-26 Thread safa boubekri
i have csv  generate  but  it contain

esultat' in 
D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas
s.php


i want  that  it  give us  the  result of  the table


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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: cvs

2010-05-26 Thread pghoratiu
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  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
>
> Notice:  Use of undefined constant resultat - assumed
> 'resultat' in 
> D:\sym_project\ajf\apps\Backend\modules\association\actions\actions.clas 
> s.php
> on line 28
>
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en