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

Store at a path #34

Closed
sahadatfci opened this issue Mar 16, 2015 · 4 comments
Closed

Store at a path #34

sahadatfci opened this issue Mar 16, 2015 · 4 comments

Comments

@sahadatfci
Copy link

I was successfully able to export csv but, I want to save this csv file at a path.
Lets Say: If csv file name is test.csv then I want to save this file in webroot/files/csv/.

How can I do this job with this plugin?

@sahadatfci sahadatfci changed the title Store to a folder Store at a path Mar 18, 2015
@helloprofitdipak
Copy link

Hello,

Anyone please let us know ,if this functionality exists in this plugin or not?
And if not then how to store the csv file on specific path?

@josegonzalez
Copy link
Member

You can call render manually and then save the output to a file. This isn't a feature of the plugin itself, but rather something you can do with cakephp's view layer. Please refer to the cakephp documentation for more details.

@phpMagpie
Copy link

@josegonzalez sorry to zombie an old issue, but wondering if you can give some more pointers on this? I can render normal controller views into a variable easy enough, but I have no idea how to get /View/CsvView.php to manually render it's output into a variable.

@phpMagpie
Copy link

I managed to get this working. I've posted my solution to the CakePHP forum:
http://discourse.cakephp.org/t/sending-csvview-output-as-an-email-attachment/397

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

No branches or pull requests

4 participants