[eluser]SeasonedCoder[/eluser]
Whenever I execute this controller:
Code:
function index()
{
$data = array ();
$data['title'] = 'Malls';
$data['body_id'] = 'malls';
$this->load->view('malls/index', $data);
}
I get 500 Internal Server Error. I looked up the message:
Code:
[Mon May 18 07:05:52 2009] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers:
/path/to/folder/cgi-bin/php-cgi
Now, if I comment the last line in the body:
Code:
function index()
{
$data = array ();
$data['title'] = 'Malls';
$data['body_id'] = 'malls';
//$this->load->view('malls/index', $data);
}
the page loads ok (of course, it's blank)
I have been struggling with the issue for a couple of hours now. But still cannot find a solution.
Any ideas on how to fix it are highly appreciated.