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
