[eluser]Unknown[/eluser]
Hello Collin,
I've been studying your template plugin lately, as i was following your guide, i came across this line of code
Code:
$data = array('name' => 'John Smith', 'birthdate' => '11/15/1950');
Code:
$this->template->write_view('content', 'user/profile', $data, TRUE);
it was a bit confusing whether in the view files, like mymastertemplate.php for example, how do i accessthe $data array, does it have to be $content defined by that first param. a region, or by $name and $birthdate? ... cuz' it says there $content will display the data array? its a bit confusing. Hope you could enlighten me.