Re: Datagrid Renderer csv and automatic file saving
| From: | Mark Wiesemann | Date: | Mon, 27 Nov 2006 15:20:30 +0000 |
| Subject: | Re: Datagrid Renderer csv and automatic file saving | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25927@lists.php.net to get a copy of this message | ||
Köteles Zoltán wrote:
> $renderOptions = array(
> 'buildHeader' => false,
> 'filename' => time().'_'.$finished_id.'.csv'
> );
> $csv = $datagrid->render(DATAGRID_RENDER_CSV, $renderOptions);
>
> It's just generate a file, what I can download or view. But I'd like to
> save automatically to a webfolder. Can I do that?
The CVS version of the CSV renderer has this feature (boolean option
'saveToFile'), but this version is not yet ready for a new release. But
you can try it, of course.
Regards,
Mark