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/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [SOLVED] library question so simple/noob you'll be proud to answer me ... (/thread-9528.html)

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.