title: Why is CakePHP inserting a space before my xml layout?
body: <p>I am having a really frustrating problem in CakePHP where a space keeps coming up at the beginning of my KML file layout which causes Google Earth to reject the KML file!</p>
  
  <pre><code>&lt;?php header("Content-disposition: attachment; filename=area.kml");
  header("Content-Type: application/vnd.google-earth.kml+xml kml; charset=utf8");
  header("Content-Transfer-Encoding: binary");
  header("Pragma: no-cache");
  header("Expires: 0");
  echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;';
   ?&gt;
  &lt;kml xmlns="http://earth.google.com/kml/2.2"&gt;
      &lt;Document&gt;
          &lt;?php echo $content_for_layout ?&gt;
      &lt;/Document&gt;
  &lt;/kml&gt;
  </code></pre>
  
  <p>for the output I get</p>
  
  <pre><code>" &lt;?xml version="1.0" encoding="UTF-8"?&gt;"
  </code></pre>
  
  <p>ect ect
  please help!</p>