Re: How to enable a CSV webservice?

2007-05-30 Thread kionae
It actually seems to work just fine either way in IE and FireFox. I only have them after the foreach because for some reason it wasn't playing nice with Safari when I had the header() calls first (and Safari is the browser of choice for a lot of people in my company, so it HAS to work there first

Re: How to enable a CSV webservice?

2007-05-30 Thread m.sbragi
: martedì 29 maggio 2007 22.59 A: cake-php@googlegroups.com Oggetto: Re: How to enable a CSV webservice? On 5/29/07, Howard Glynn <[EMAIL PROTECTED]> wrote: Slightly bad karma to reply to one's own post so soon, but after

Re: How to enable a CSV webservice?

2007-05-29 Thread Gonzalo Servat
On 5/29/07, Howard Glynn <[EMAIL PROTECTED]> wrote: > > Slightly bad karma to reply to one's own post so soon, but after > continuing to investigate, > I'd like to provide a solution for the mail archives. I just didn't fully > understand the route handling up until this point, but the light is sta

Re: How to enable a CSV webservice?

2007-05-29 Thread Tane Piper
/me bangs himself over the head several times and decides he should stop answering emails on his blackberry or really read emails through first before deciding to answer I actually do have some code lying about that outputs to CSV from a database - although I've not used it in cake yet, its just

Re: How to enable a CSV webservice?

2007-05-29 Thread Chris Hartjes
On 5/29/07, Howard Glynn <[EMAIL PROTECTED]> wrote: > I am well aware that CSV is not a webservice as such but I want the CSV > output availability to be consistent with the XML approach. > > Cheers, Howard You are overcomplicating what appears to me (at least) a simple solution. Why can't you j

Re: How to enable a CSV webservice?

2007-05-29 Thread Howard Glynn
Slightly bad karma to reply to one's own post so soon, but after continuing to investigate, I'd like to provide a solution for the mail archives. I just didn't fully understand the route handling up until this point, but the light is starting to go on for me. I have subsequently found 2 ways it can

Re: How to enable a CSV webservice?

2007-05-29 Thread Tane Piper
Do'h ignore that last message - I read CSV as CVS :) Yea, I agree with chris - this doesn't sound like a service, you could probably create a component/helper that can do the work for you. I'd say read the file one line at a time, explode each comma seperated value into an array and save it to t

Re: How to enable a CSV webservice?

2007-05-29 Thread kionae
This may or may not help. it's not exactly what you want to do, but I don't have much use for CSV. I needed to be able to allow site managers to generate and download an excel spreasheet of user records from the database. In the controller: function excel() { $this->layout = 'excelfile'

Re: How to enable a CSV webservice?

2007-05-29 Thread Tane Piper
Hello fellow Embra Cake developer :) I'm not 100% sure, but if your not tied to CVS, check out Trac for running a backend SVN server. There is an XML-RPC plugin for it that allows you to make calls to it. I'm not sure on the source side, but it definetly let's you make calls to the ticket track

Re: How to enable a CSV webservice?

2007-05-29 Thread Chris Hartjes
On 5/29/07, Howard Glynn <[EMAIL PROTECTED]> wrote: > Am I missing something obvious? Well, given that CSV isn't a standard web service, you are missing the obvious. :) You'll have to create a csv controller that passes the data to your csv template. Should be very simple. Of course, I can say

How to enable a CSV webservice?

2007-05-29 Thread Howard Glynn
I have successfully used the XML webservice to export my records in that form as well as a regular html view just by varying the url The manual describes webservices as "rss, xml, rest, soap, xmlrpc" (Section 4 Advanced routing http://manual.cakephp.org/chapter/configuration) I know CSV is not st