CodeIgniter Forums

Full Version: Problem with librarie
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hello, i have created a librarie but i have a problem.

This is the code:

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Conf_Lib {

public $configuracion=array();

function Conf_Lib() {

$this->CI = & get_instance();

function informacion() {




Fatal error: Call to a member function get() on a non-object in /var/www/searchmedic2/application/libraries/conf_lib.php on line 10


Thanks you.

El Forum

[eluser]Tom Schlick[/eluser]
there should not be a space in $this->CI = & get_instance();

make it this $this->CI =& get_instance();