title: Codeigniter: Cannot modify header information - headers already sent by
body: <p>I'm moving my website online, but when i edit my table data i got errors like this,</p>
  
  <pre><code>A PHP Error was encountered
  Severity: Warning
  
  Message: Cannot modify header information - headers already sent by (output started at /home/shintiad/public_html/sociotraveler/application/views/template/index.php:20)
  
  Filename: libraries/Session.php
  
  Line Number: 688
  
  A PHP Error was encountered
  
  Severity: Warning
  
  Message: Cannot modify header information - headers already sent by (output started at /home/shintiad/public_html/sociotraveler/application/views/template/index.php:20)
  
  Filename: helpers/url_helper.php
  
  Line Number: 542
  </code></pre>
  
  <p>my template/index.php code</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
          &lt;!-- Meta --&gt;
          &lt;?php $this-&gt;load-&gt;view('template/partial/meta');?&gt;
          &lt;!-- Meta --&gt;
    &lt;/head&gt;
    &lt;body&gt;
          &lt;!-- Header --&gt;
          &lt;?php $this-&gt;load-&gt;view('template/partial/sidebar');?&gt;
          &lt;!-- Header --&gt;
  
          &lt;!-- Dynamic Content --&gt;
          &lt;div class="content"&gt;
          &lt;?php $this-&gt;load-&gt;view("{$page_info-&gt;content}");?&gt;
          &lt;/div&gt;
          &lt;!-- Dynamic Content --&gt;
  
          &lt;!-- Footer --&gt;
          &lt;?php $this-&gt;load-&gt;view('template/partial/footer');?&gt;
          &lt;!-- Footer --&gt;
     &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>when i ran it on my localhost everything was alright..Please help, thank you...
  *i've checking white space before