Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] library question so simple/noob you'll be proud to answer me ...
#3

[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';

        }

    }


Messages In This Thread
[SOLVED] library question so simple/noob you'll be proud to answer me ... - by El Forum - 06-28-2008, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB