[eluser]Dagobert Renouf[/eluser]
Hi guys,
My library :
Code:
public function __construct()
{
$CI =& get_instance();
$CI->load->helper('url');
$CI->load->database();
}
public function display($table, $params = "")
{
if ($this->db->table_exists($table))
{
echo 'a';
}
}
it says db is not defined, why is that ? (I load the database in the constructor)