[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><?php echo $header;?></h1>
</body>
</html>
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.