[eluser]n8m[/eluser]
I read in the 1.5.4 User-Guide for Codeigniter, that variables and configuration can be passed to custom libraries. Somehow i have no luck with that. I tried both ways:
I try to pass values through the Controller that calls the Library by doing this:
Code:
$bla=array('foo'=>'ba');
$this->load->library('widget',$bla);
also i tried to put the $bla stuff in a config file (which i am mainly interested in).
i tried to call the foo value in a method of my custom library the normal way like:
Code:
function test1(){
echo $foo;
}
What have i done wrong? Did i miss something?
Greetings and thanks in advance
n8m