Welcome Guest, Not a member yet? Register   Sign In
Problems with Config file in custom Libarys [solved]
#1

[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


Messages In This Thread
Problems with Config file in custom Libarys [solved] - by El Forum - 10-23-2007, 04:58 PM
Problems with Config file in custom Libarys [solved] - by El Forum - 10-24-2007, 12:56 AM
Problems with Config file in custom Libarys [solved] - by El Forum - 10-24-2007, 03:20 AM
Problems with Config file in custom Libarys [solved] - by El Forum - 10-24-2007, 03:28 AM
Problems with Config file in custom Libarys [solved] - by El Forum - 10-24-2007, 03:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB