Thanks for your help. I got the solution how to return xml data form cakephp application.
Sul: > you have to set debug mode to 0 (zero) in you app/config.core.php file. >Then you can return xml data. > if you set debug mode 2 then cakephp does not return xml data On Dec 15 2009, 10:39 pm, euromark <[email protected]> wrote: > h() escapes special characters > > so use > > echo h($string) to get "<member>my name here </member>" > > On 15 Dez., 15:42, Giedrius Rekasius <[email protected]> > wrote: > > > On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote: > > > Dear everyone, > > > > I want to return XML data form controller. The format is like > > > > controller code: > > > > function info(){ > > > > $xml ="<member>my name here </member>"; > > > echo $xml; > > > } > > > > This does not print any result (blank result). While it get special > > > character then it filter all value. > > > Try to do it this way: > > > function info(){ > > > $xml ="<member>my name here </member>"; > > > echo '<pre>'; > > echo $xml; > > echo '</pre>'; > > > } > > > -- > > Regards, > > Giedrius Rekasius 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
