codeigniter
class Hoge { var $CI; function __constructor() { $CI =& get_instance(); } function somefunc($id) { $this->CI->db->get_where($table_name, array('id' =>$id)); // 何か処理 } }みたいにインスタンスを取らないといけない。 コントローラ内でCodeIgni…
class Hoge { var $CI; function __constructor() { $CI =& get_instance(); } function somefunc($id) { $this->CI->db->get_where($table_name, array('id' =>$id)); // 何か処理 } }みたいにインスタンスを取らないといけない。 コントローラ内でCodeIgni…