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
Hi,
my goal is to allow my users to download a CSV export from my web
application.
In a pure PHP application I would do following:
// We'll be outputting a PDF
header('Content-type: text/csv');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename=export.csv');
Philipp Kamps wrote:
Hi,
my goal is to allow my users to download a CSV export from my web
application.
In a pure PHP application I would do following:
|// We'll be outputting a PDF
header('Content-type: text/csv');
// It will be called downloaded.pdf
header('Content-Disposition: