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...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---