Skip to content

Add Donwload direct file CSV#33

Open
EOM wants to merge 1 commit intoProLoser:cake2from
EOM:patch-1
Open

Add Donwload direct file CSV#33
EOM wants to merge 1 commit intoProLoser:cake2from
EOM:patch-1

Conversation

@EOM
Copy link

@EOM EOM commented Feb 9, 2018

Add Donwload direct file CSV

Add Donwload direct file CSV
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of making export() more complex, why don't you add a download() method that calls export() internally and sets the headers and filename appropriately. This way you could take the download filename as an argument to download() and still pass php://output to the export() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants