[eluser]ontguy[/eluser]
I think it should setup like this:
Code:
var $CI;
public function __construct()
{
$this->CI =& get_instance();
$this->CI->load->helper('url');
$this->CI->load->database();
}
public function display($table, $params = "")
{
if ($this->CI->db->table_exists($table))
{
echo 'a';
}
}