Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Donwload direct file CSV #33

Open
wants to merge 1 commit into
base: cake2
Choose a base branch
from
Open

Add Donwload direct file CSV #33

wants to merge 1 commit into from

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