[eluser]thomas86[/eluser]
Hello,
i started wie CI today and at the moment i work throw the user guide. Now i want to set up a simple view.
Here is my code:
Code:
// url http://localhost/ci/index.php/thomas/bla
// application\controllers\thomas.php
function bla()
{
$data = array(
'title' => 'My Title',
'heading' => 'My Heading',
'message' => 'My Message'
);
$this->load->view('thomasview', $data);
}
// application\views\thomasview.php
<html>
<head>
<title><?php $title; ?></title>
</head>
<body>
<h1><?php $heading; ?></h1>
<?php $message; ?>
</body>
</html>
I only get a WSoD, whats wrong with the code?
cheers
Thomas