[eluser]Dagobert Renouf[/eluser]
It works like this :
Code:
public function __construct()
{
$this->ci =& get_instance();
$this->ci->load->helper('url');
$this->ci->load->database();
}
public function display($table, $params = "")
{
echo base_url();
$fields = $this->ci->db->list_fields($table);
//...
}
that was ontguy first answer, I know I suck.