[eluser]kenetiks[/eluser]
I seem to be unable to see the forest for the trees here...I've looked, looked, thrown my mouse at the cat(haven't seen her since), smoked a half a pack of cigarettes and looked some more. I've asked Google, the user guide, my second cousin's brother's sister's roommate, my mom(she thought I was on drugs of course) and I'm no still closer to an answer.
If someone could give me a pretty good smack, I'd be appreciative.
Entire Controller:
<?php
class hello_world extends Controller {
function Hello_world()
{
parent::Controller();
}
function index() {
$data['hello'] = "hello1";
$data['world'] = "world";
$this->load->view('helloindex', $data);
}
}
Entire view:
<pre><?php print_r($data); ?></pre>
Result:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: data
Filename: views/helloindex.php
Doesn't matter how, what, why, when or where you call $data.
I've doesn't something blatantly, obviously and stupefyingly dumb haven't i?