CI 묻고 답하기

제목 커스텀 라이브러리 모델 접근
카테고리 CI 2, 3
글쓴이 푹신이 작성시각 2022/12/05 14:23:29
댓글 : 0 추천 : 0 스크랩 : 0 조회수 : 1243   RSS

커스텀 라이브러리를 생성해서 사용하고 있는데

 

CI_Controller에 프로퍼티 선언

/*

* @property Tb_test_model $tb_test_model
*/

 

class Testlib
{
    protected $CI;
    public $location       = '';

    public function __construct($config = array())
    {
        $this->CI =& get_instance();

        $this->CI->load->model('Tb_test_model');
    }
    public function test()
    {
        $this->CI->Tb_test_model->get_data();
    }
}

 

test 에서 


Tb_test_model 모델 안에 있는 함수를 사용 하는데 자동완성이 안 되고 있습니다.

 

혹시 해결 방법 아시는 분 있나요?

 다음글 설치관련 및 controller 문의드립니다. (4)
 이전글 관리자 페이지 로그인이 한번에 안되는 문제 (1)

댓글

없음