you probably have a extra return in a helper/ component/ controller somewhere try adding
header() into your code (with debug set to 1) and it should throw an error that will tell you where the extra one is. Sam D ps this can be found by searching google groups and finding this thread <http://groups.google.com/group/cake-php/browse_thread/thread/f7518e8343ea60e2/6885f55dc1360d45?lnk=gst&q=Leading+blank+in+XML&rnum=1#6885f55dc1360d45> On 1/26/07, totient <[EMAIL PROTECTED]> wrote: > > For some reason, there's leading whitespace in my xml layout. > > [code] > <?php > //xml.thtml > header('Content-type: text/xml'); > echo '<?xml version="1.0" encoding="UTF-8" ?>'."\n"; > echo $content_for_layout; > ?> > [/code] > > And when I go to /sitemap, I get > > [code] > > <?xml version="1.0" encoding="utf-8" ?> > <!-- sitemap here --> > [/code] > > The leading whitespace makes it parse incorrectly, so how can I fix it? > By the way, there's no leading whitespace in my default.thtml layout... > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
