You have to tell CakePHP to render as XML, for example by using the
requestHandler to set the respond type. See:
http://book.cakephp.org/view/1295/Responding-To-Requests

That should mean that CakePHP will use the default XML layout defined
in the /views/layouts/xml folder.

The above is my assumption only, I have not used XML requests/
responses in my application - yet :)
Enjoy,
   John

On 23 Jun., 06:40, ytbryan <[email protected]> wrote:
> Hi thanks for your advice.
>
> I included
>
> $this->layout='xml';
>
> into my controller::index();
>
> I place <?php echo $xml->header() ?> into the index.ctp.
>
> But it is still not rendered as xml. I am using firefox and chrome.
>
> any more idea why? or does anybody has a sample cakephp project with
> REST.
>
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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