Hello all, I have a client that wants to be able to export any results he sees on screen to a csv file. This will be used for different models and will need to work on large queries. I was wondering if anyone would be willing to share their thoughts on the best 'cake' way to do this. I'm asking for high level, no code, thoughts. Here is sort of what I am brainstorming. If I modify app_model to have an exporter function that takes an model instance and a conditions array that might make a lot of sense, so I could do things like this:
$this->Product->csvExporter($this->Product, $conditions); This would work for multiple models. Would a component make more sense? The issue this brings up is that how do I pass the information to get the conditions? Some of these queries will be returning tens of thousands of results. I was thinking of having a link on all the pages like "Export this to csv" and it would open a new window so if it took some time, the user could do other things. So I have to get the current conditions to the new window somehow. Any thoughts on this would be most appreciated. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
