Welcome Guest, Not a member yet? Register   Sign In
Independent database
#8

[eluser]Diego Pessoa[/eluser]
Wow! Finally I found the soluction! =) Thanks a lot!!!!

Now:
Code:
public static function getUsers() {
        $users = array();
        $CI =& get_instance();
        $res = $CI->db->get('users');
        foreach($res->result() as $data)
            $users[] = new User($data->id);
        return $users;
    }

Well, it hasn't a good looking, but works! hehe! =)


Messages In This Thread
Independent database - by El Forum - 04-03-2008, 04:16 PM
Independent database - by El Forum - 04-03-2008, 04:53 PM
Independent database - by El Forum - 04-03-2008, 05:09 PM
Independent database - by El Forum - 04-03-2008, 05:27 PM
Independent database - by El Forum - 04-03-2008, 05:34 PM
Independent database - by El Forum - 04-03-2008, 05:56 PM
Independent database - by El Forum - 04-03-2008, 06:00 PM
Independent database - by El Forum - 04-03-2008, 06:41 PM
Independent database - by El Forum - 04-03-2008, 07:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB