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

[eluser]n8m[/eluser]
Thanx for the feedback,
but it still doesen't work. My Config file looks like this:
Code:
$config['foo']="bar";

and my Library like this:
Code:
class Widget{
        
        public $CI;
        
        function Widget(){
            $this->CI = & get_instance();
                $this->CI->load->config('widget');
        }
        
        function dialog(){
                    
            echo $foo;
                }

The error message tells me that "Message: Undefined variable: foo".


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