CodeIgniter Forums
[SOLVED] library question so simple/noob you'll be proud to answer me ... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [SOLVED] library question so simple/noob you'll be proud to answer me ... (/showthread.php?tid=9528)

Pages: 1 2


[SOLVED] library question so simple/noob you'll be proud to answer me ... - El Forum - 06-29-2008

[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.