Hello,

I am trying to use CakePHP to create some basic webservices. I have an
application that I would like to request data from a CakePHP
webservice. For example, a basic findAll() performed on the posts
table from the CakePHP tutorial, would need to pass back the records
in XML format to the requesting app.

How would this be done? Do I need to create a view?

The code from the tutorial is as follows:
<?php
class PostsController extends AppController {

        var $name = 'Posts';

        function index() {
                $this->set('posts', $this->Post->findAll());
        }
}
?>

How do I store the results of the $this->Post->findAll() without
sending it to the view?

Cheers, Phil.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to