[eluser]Bl4ckB1rD[/eluser]
Is it possible to send multiple variables to view file?
Example:
Code:
$data = 'something';
$otherdata = 'something else';
$this->load->view('myview',$data,$otherdata);
I'm aware i can use arrays but that wont solve my problem.
And another question...
Can i call certain function of controller within view file?
Example:
in controller class:
Code:
function myfunction {
return "somedata";
}
in view file:
Code:
<br>My function outputs:
<?=$this->myfunction?>
this syntax doesnt work, even if i specify controller name for example: $this->Mycontroller->myfunction or Mycontroller->myfunction
Any ideas?