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
: 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
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
/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
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
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
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
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'
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
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
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
11 matches
Mail list logo