Welcome Guest, Not a member yet? Register   Sign In
Apache hangs
#1

[eluser]sukar[/eluser]
I just mistyped a variable inside the VIEW in which should display a value passed from the CONTROLLER as a second parameter when invoking the VIEW.

Please help. thank you very much. Any suggestions are very appreciated.

Sincerely, marcz

Code Sample
////////////// sample controller
// i got an array declared with two subscripts, title and heading which i will pass on to the load->view function
<?php
class Blog extends Controller {

function index()
{
$data['title'] = "My Real Title";
$data['heading'] = "My Real Heading";

$this->load->view('blogview', $data);
}
}
?>
////////////// sample view
// in this file i just mistyped the variable $heading into $header.
<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>
<h1>&lt;?php echo $header;?&gt;</h1>
&lt;/body&gt;
&lt;/html&gt;

Expected Result
Even if i mistyped a variable in VIEW, it should display null or throw a notice that un-initialized variable found.

Actual Result
Upon loading the page, the browser freeze and apache server hangs and unexpectedly quits.
#2

[eluser]Derek Allard[/eluser]
Hi Marcz. I've removed the bug entry identical to this until you've had a chance to look deeper. What you're describing does not sound like a CI bug. Apache shouldn't be hanging because of a mis-typed variable.
#3

[eluser]sukar[/eluser]
i used 3 virtual functions instead of include or require function in the view folder. And when i changed it back to include or require, now it throws the expected error notices. thanks.




Theme © iAndrew 2016 - Forum software by © MyBB