세션을 사용하고 싶습니다. 자동로드를 시도합니다. 응용 프로그램> config.php를, 나는클래스 'CI_Driver_Library'를 찾을 수 없습니다 codeigniter 오류
$autoload['libraries'] = array('session');
을하지만 경우에 나는 아래의 오류
Message: Class 'CI_Driver_Library' not found
Filename: Session/Session.php
세션을 사용하고 싶습니다. 자동로드를 시도합니다. 응용 프로그램> config.php를, 나는클래스 'CI_Driver_Library'를 찾을 수 없습니다 codeigniter 오류
$autoload['libraries'] = array('session');
을하지만 경우에 나는 아래의 오류
Message: Class 'CI_Driver_Library' not found
Filename: Session/Session.php
을 가지고 당신의 CodeIgniter의 3.0
이상 사용이 사용 : session
이 driver
아니기 때문에
$autoload['drivers'] = array('session');
을 버전 3.0 이후 library
!
2.1
버전의 경우 library
입니다!
응용 프로그램/설정/autoload.php
그냥 @ Rizier123에 추가 할 수있는 대답.파일 : 홈페이지/
CI Verson
application/config/config.php
적은 3.0
이상이 library
함수로 cache
및 session
을 주었다.
$ 자동로드 [
'libraries'
= 배열 ('cache'
,'session'
);$ autoload [
'drivers'
] = array();
그리고 Verson 3.0보다
$ 자동로드 [
();'libraries'
= 배열 $ autoload [
'drivers'
] = 배열 ('cache'
,'session'
);
라이브러리에서 모두 제거하고 간단하게 당신은 그것이
library
에서 제거하는 것을 잊지 수
드라이버에 추가,이 문제를 해결 한 후 적절한 부하를 야기;
@ Rizier123 다시 한 번 감사합니다. 그래서 이상한 이유가 이전 init이 더 이상 작동하지 않는 이유는 무엇입니까? \t \t \t $ this-> load-> library ('session'); –
답변 됨! (드라이버> = 버전 3.0 및 라이브러리 <= 버전 2.1) – Rizier123