Re: xml not rendering in REST cakephp
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 <ytbr...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home