무엇이 문제인지 잘 모르시겠습니까? 응용 프로그램/핵심 폴더에, 내 클래스는 여기있다 :Codeigniter 2.0 코어 라이브러리를 확장 할 수 없음
치명적인 오류 : 정의되지 않은 메서드 CI_Image_lib에 전화 : testit()를
I를
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class MY_Image_lib extends CI_Image_lib {
public function __construct() {
parent::__construct();
}
function tesit($msg) {
log_message('error', $msg);
}
}
나는이 오류 이것을 다음과 같이 부른다. $ this-> image_lib-> testit ('not working');
내가 누락 된 부분은 매우 이상합니다.
코어 대신 * 라이브러리 * 폴더를 사용하지 않는 이유는 무엇입니까? –
@ CanGeliş 안녕하세요, 저는 CI 전문가가 아닙니다. 배우기 시작했습니다. 언제 사용해야합니까? 그리고 언제 핵심 폴더? 그 차이점은 무엇입니까? 나는 그들이 그들의 차이라는 것을 몰랐다. 고맙습니다. – user147
* core *만큼 그렇게해서는 안됩니다. * libraries * 폴더가 귀하의 목적을 위해 존재합니다. http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html –