/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 an old
class I wrote which could be plugged in as a vendor.  But at the
moment I'm hurtling down the M8 on a bus so I won't have access to it
until later.

Tane

On 5/29/07, Tane Piper <[EMAIL PROTECTED]> wrote:
> 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 the db.
>
> I was actually looking at this today as part of something else I
> wanted to do (use XSL-FO to covert xsl and csv files to PDF on
> upload).
>
> There might even be a class on PHPclasses.com that you could put in
> your vendor dir, could save on a lot of code.
>
> Tane
>
>
> On 5/29/07, Tane Piper <[EMAIL PROTECTED]> wrote:
> > 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 tracker - adding/viewing/editing tickets.  That's how
> > Mylar for Eclipse works, and it ties in nicely.
> >
> > Tane
> > http://webrocket.wordpress.com
> >
> >
> > On 5/29/07, Howard Glynn <[EMAIL PROTECTED]> wrote:
> > > 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 strictly a webservice, but I would dearly love to add
> it
> > > to this list as the consumers on my app expect to be able to paste into
> > > a spreadsheet, and this would be very convenient in terms of consistency
> > >
> > > Can anyone point me in the right direction of how I do this?
> > >
> > > I tried following the pattern for xml (items/xml/view.thtml,
> > > layouts/xml/default.thtml etc)
> > > but each time I try to go to a URL like http://..../csv/items/view/1234
> > > ... I get an error about a missing CSV controller. I suspect I just need
> > to
> > > update some file
> > > or configuration or route to sort this out
> > >
> > > Am I missing something obvious?
> > > Howard
> > >
> > > --
> > > --
> > > Howard Glynn [ [EMAIL PROTECTED] ]
> > > Edinburgh, UK
> > >
> > > > > >
> > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to