• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot modify header information

#3
[eluser]Nathan Payne[/eluser]
[quote author="Armchair Samurai" date="1227253725"]Perhaps this is far too obvious a question, but what's on line 37 in Layout.php? From the errors, sounds like it's outputting something to the browser.[/quote]
Layout.php is below.
I have hunted the files for blank space etc.
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Layout
{
    
    var $obj;
    var $layout;
    
    function Layout($layout = "layout_main")
    {
        $this->obj =& get_instance();
        $this->layout = $layout;
    }

    function setLayout($layout)
    {
      $this->layout = $layout;
    }
    
    function view($view, $data=null, $return=false)
    {
        $loadedData = array();
        $loadedData['content_for_layout'] = $this->obj->load->view($view,$data,true);
        
        if($return)
        {
            $output = $this->obj->load->view($this->layout, $loadedData, true);
            return $output;
        }
        else
        {
            $this->obj->load->view($this->layout, $loadedData, false);
        }
    }
}


Messages In This Thread
Cannot modify header information - by El Forum - 11-20-2008, 07:15 PM
Cannot modify header information - by El Forum - 11-20-2008, 07:48 PM
Cannot modify header information - by El Forum - 11-20-2008, 08:13 PM
Cannot modify header information - by El Forum - 11-21-2008, 07:09 AM
Cannot modify header information - by El Forum - 11-21-2008, 07:44 AM
Cannot modify header information - by El Forum - 11-21-2008, 02:02 PM
Cannot modify header information - by El Forum - 11-21-2008, 05:21 PM
Cannot modify header information - by El Forum - 11-21-2008, 05:56 PM
Cannot modify header information - by El Forum - 11-21-2008, 06:27 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.