11-24-2009, 01:12 PM
|
#4 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
|
The second argument of $this->load->view(); takes the array with values. The arraykeys (names) of easy value in the array is transformed into a variable in the view itself. (extract() function)
So when I call the view like this from my controller:
$this->load->view('test', array('test' => 'hello world'));
I can read it like this in my view:
My testvalue: <?=$test?>
__________________
Nunchaku! Who doesn't like martial arts? =)
|
|
|