Umm actually it appears that the problem still persists. And the
weirdest thing is, no headers have been sent before the desired
output...

On Jan 26, 5:01 pm, "totient" <[EMAIL PROTECTED]> wrote:
> Wow, windows really sucks. Unfortunately I had to be on a windows box
> and my server is running linux, so apparently the whitespace was caused
> by Window's \r.
>
> I think.
>
> On Jan 26, 12:38 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
>
> > 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/f7518e83...>
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to